avh4 / elm-format

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
BSD 3-Clause "New" or "Revised" License
1.31k stars 145 forks source link

elm-format aggressively removes documentation double-spaces #593

Open z5h opened 5 years ago

z5h commented 5 years ago

I'd like, to achieve a quoting effect with new-line in a comment. e.g.

{-|
> Blah.<space><space>
> More.
-}

To achieve:

Blah.
More.

Instead, elm-format removes the double wire space so I'm left with:

Blah. More.

avh4 commented 5 years ago

Thanks for the report!

(Note to whoever fixes this: I'm not immediately sure whether this is a bug in the markdown parser, or just that the formatter doesn't output properly.)

avh4 commented 5 years ago

Babelmark reference for OP's example: https://johnmacfarlane.net/babelmark2/?text=%3E+Blah.++%0A%3E+More.