JS improve indent (#12581)
* JSgen make indent be all spaces, instead of mixed spaces and tabs, for generated JS
This commit is contained in:
parent
ceda586d88
commit
4c9a7e6f00
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue