diff options
author | Araq <rumpf_a@web.de> | 2011-09-20 11:59:06 -0700 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-09-20 11:59:06 -0700 |
commit | bf386374020663452bfdbe3169845970d948cba6 (patch) | |
tree | e233a5111982b90c07e9fdfb0f75376c36646137 /compiler/ropes.nim | |
parent | daa2c8732d0f4feef20f68e75e9c491e95b95a0d (diff) | |
parent | 0b197ade6cd842f5029ba60078a11d043bbd583b (diff) | |
download | Nim-bf386374020663452bfdbe3169845970d948cba6.tar.gz |
Merge pull request #57 from zah/codegen-fixes
Codegen fixes
Diffstat (limited to 'compiler/ropes.nim')
-rwxr-xr-x | compiler/ropes.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/ropes.nim b/compiler/ropes.nim index 9b8a8466c..7e0d6c8e2 100755 --- a/compiler/ropes.nim +++ b/compiler/ropes.nim @@ -59,7 +59,7 @@ # import - msgs, strutils, platform, hashes, crc + msgs, strutils, platform, hashes, crc, options const CacheLeafs* = true @@ -319,7 +319,10 @@ proc ropef(frmt: TFormatStr, args: openarray[PRope]): PRope = if j > high(args) + 1: internalError("ropes: invalid format string $" & $(j)) app(result, args[j - 1]) - of 'N', 'n': + of 'n': + if not (optLineDir in gOptions): app(result, tnl) + inc i + of 'N': app(result, tnl) inc(i) else: InternalError("ropes: invalid format string $" & frmt[i]) |