summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2019-11-03 04:03:03 -0300
committerAndreas Rumpf <rumpf_a@web.de>2019-11-03 08:03:03 +0100
commit4c9a7e6f00c034414d0d12e2c7110417908c33b2 (patch)
tree57b66a74ae7bfddc6c1332288d1137e236ccca22 /compiler/jsgen.nim
parentceda586d88df6a26054cd2c2b1054466f3ee469d (diff)
downloadNim-4c9a7e6f00c034414d0d12e2c7110417908c33b2.tar.gz
JS improve indent (#12581)
* JSgen make indent be all spaces, instead of mixed spaces and tabs, for generated JS
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 4f2fef6b8..6310a45a6 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -110,7 +110,7 @@ proc indentLine(p: PProc, r: Rope): Rope =
   var p = p
   while true:
     for i in 0 ..< p.blocks.len + p.extraIndent:
-      prepend(result, "\t".rope)
+      prepend(result, rope"  ")
     if p.up == nil or p.up.prc != p.prc.owner:
       break
     p = p.up