Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r54106:39ba7e60ebca Date: 2012-03-31 12:30 +0200 http://bitbucket.org/pypy/pypy/changeset/39ba7e60ebca/
Log: Windows fix. diff --git a/dotviewer/graphparse.py b/dotviewer/graphparse.py --- a/dotviewer/graphparse.py +++ b/dotviewer/graphparse.py @@ -93,6 +93,7 @@ return result def parse_plain(graph_id, plaincontent, links={}, fixedfont=False): + plaincontent = plaincontent.replace('\r\n', '\n') # fix Windows EOL lines = plaincontent.splitlines(True) for i in range(len(lines)-2, -1, -1): if lines[i].endswith('\\\n'): # line ending in '\' _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit