Closed t-regbs closed 2 years ago
Hey @t-regbs. Thank you for your pull request. Overall this looks good. I wonder if we can solve the problem you are describing differently than the change in startLine()
. The function startLine()
is supposed to start an indented line and now you made it more complex handling other unrelated cases. So, I wonder if we should avoid calling startLine()
in the first place if this is not what we want here... but I haven't looked closely at the code yet.
I added this check to the LineWriter:
Where checkLast is
Because without the check instead of having as desired:
I get: