Skip to content

Commit

Permalink
parsecfg: retain CRLF line breaks, fixes #12970 (#12971)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkrauter authored and Araq committed Dec 29, 2019
1 parent 8c19372 commit 37e93ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pure/parsecfg.nim
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,12 @@ proc replace(s: string): string =
while i < s.len():
if s[i] == '\\':
d.add(r"\\")
elif s[i] == '\c' and s[i+1] == '\L':
d.add(r"\n")
elif s[i] == '\c' and s[i+1] == '\l':
d.add(r"\c\l")
inc(i)
elif s[i] == '\c':
d.add(r"\n")
elif s[i] == '\L':
elif s[i] == '\l':
d.add(r"\n")
else:
d.add(s[i])
Expand Down

0 comments on commit 37e93ea

Please sign in to comment.