summary refs log tree commit diff stats
path: root/compiler/renderer.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-04-20 01:59:39 +0200
committerAraq <rumpf_a@web.de>2013-04-20 01:59:39 +0200
commit2796121dd7410af45a2fbaf43cc7577799fb3157 (patch)
treec07d68dbaf2a6916aef0a03d6d898ab73c496d31 /compiler/renderer.nim
parent04216fc7500e6c74f41c8f5aa743fb43a1ee65da (diff)
downloadNim-2796121dd7410af45a2fbaf43cc7577799fb3157.tar.gz
next steps for the new parser/grammar
Diffstat (limited to 'compiler/renderer.nim')
-rw-r--r--compiler/renderer.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim
index b4ef52100..1333e40c4 100644
--- a/compiler/renderer.nim
+++ b/compiler/renderer.nim
@@ -81,13 +81,13 @@ proc addTok(g: var TSrcGen, kind: TTokType, s: string) =
 
 proc addPendingNL(g: var TSrcGen) = 
   if g.pendingNL >= 0: 
-    addTok(g, tkInd, "\n" & repeatChar(g.pendingNL))
+    addTok(g, tkSpaces, "\n" & repeatChar(g.pendingNL))
     g.lineLen = g.pendingNL
     g.pendingNL = - 1
 
 proc putNL(g: var TSrcGen, indent: int) = 
   if g.pendingNL >= 0: addPendingNL(g)
-  else: addTok(g, tkInd, "\n")
+  else: addTok(g, tkSpaces, "\n")
   g.pendingNL = indent
   g.lineLen = indent