summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--changelog.md2
-rw-r--r--compiler/jsgen.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md
index ee07c29c6..c8086fd51 100644
--- a/changelog.md
+++ b/changelog.md
@@ -45,7 +45,7 @@
 
 ### Compiler changes
 
-
+- JS target indent is all spaces, instead of mixed spaces and tabs, for generated JavaScript.
 
 
 ## Bugfixes
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