georgefst/prettyprinter-lucid

Indentation after newlines

georgefst opened this issue · 0 comments

The current naive solution:

STLine i -> br_ [] >> toHtml (T.replicate i $ T.singleton '.')

doesn't work in Firefox or Chrome. HTML renderers are seemingly allowed to ignore whitespace immediately following a line break.

I'm not sure what the best answer to this is, or if it's even possible without involving some CSS...