mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
committed by
Andreas Rumpf
parent
8c19372690
commit
37e93eab66
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user