brandonbloom / fipp

Fast Idiomatic Pretty Printer for Clojure
525 stars 44 forks source link

Root pretty document must be a group. #48

Closed brandonbloom closed 4 years ago

brandonbloom commented 6 years ago

If it's not a group, then no :begin operation will occur, and therefore fits will start at zero, causing all :line ops to be rendered as newlines.

brandonbloom commented 4 years ago

I forget what I meant by this and it's been so long that I barely remember how the engine algorithm works. However, in practice, :line nodes never occur outside of a :group node, so I'm not sure this is a problem worth worrying about.

If anyone runs in to this in the real world, please let me know.