aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-03-31 12:30:11 +0200
committerArmin Rigo <arigo@tunes.org>2012-03-31 12:30:11 +0200
commit70aa339bba651f234c0b882bbc076c4303947d8c (patch)
tree2cb452943f2d8eb02fd9ece89a11f59eb9d8a107 /dotviewer
parentissue1101: Even if only string keys are allowed in type dicts, (diff)
downloadpypy-70aa339bba651f234c0b882bbc076c4303947d8c.tar.gz
pypy-70aa339bba651f234c0b882bbc076c4303947d8c.tar.bz2
pypy-70aa339bba651f234c0b882bbc076c4303947d8c.zip
Windows fix.
Diffstat (limited to 'dotviewer')
-rw-r--r--dotviewer/graphparse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/dotviewer/graphparse.py b/dotviewer/graphparse.py
index 890c0fee56..6a1f5b6404 100644
--- a/dotviewer/graphparse.py
+++ b/dotviewer/graphparse.py
@@ -93,6 +93,7 @@ def splitline(line, re_word = re.compile(r'[^\s"]\S*|["]["]|["].*?[^\\]["]')):
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 '\'