diff options
Diffstat (limited to 'compiler/layouter.nim')
-rw-r--r-- | compiler/layouter.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/layouter.nim b/compiler/layouter.nim index 546d4766e..e45e6400a 100644 --- a/compiler/layouter.nim +++ b/compiler/layouter.nim @@ -145,6 +145,10 @@ proc closeEmitter*(em: var Emitter) = maxLhs = 0 lineBegin = i+1 of ltTab: + if i >= 2 and em.kinds[i-2] == ltNewline and em.kinds[i-1] in {ltNewline, ltSpaces}: + # a previous section has ended + maxLhs = 0 + if maxLhs == 0: content.add em.tokens[i] inc lineLen, em.tokens[i].len |