Closed maslennikov closed 7 years ago
I also checked whether it could be a regression from the last --fail-not-set
implementation, and it is not the case.
I've made a patch and fixed your use case. Would you confirm that it works for you?
Wow that was super fast! Many thanks Tyler! I've tested it additionaly with my yaml documents I am generating, they are perfectly fine now.
Thanks for checking it for me! Closing the issue.
This can be reproduced by a test: tests/partial.template:
tests/partial.partial2:
output of
./mo tests/partial.template
:As it can be seen, when partials come line-by-line, every second partial gets messed up: alignment starting from the second line breaks and additional new line appears.
I tried to debug it, ended up figuring that
moIsStandalone
triggers false for every of these buggy cases. I didn't manage to understand from the first glance how to approach this function though, for that I apologize :)I had a second thought that maybe the trailing newline in the partial file causes that behavior but this seems not to be true after some quick tries.