-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserving empty lines in free text fields #29
Comments
Yes, that would be good to fix. I'm not sure where (and why) the empty lines are stripped. |
@phadej Would this be a hard fix? Can you point to where to look? |
@shlevy I suspect it's an issue in The https://github.com/haskell/cabal/blob/f01e000b92ddf8cf04a175228e0758fafb732a4d/Cabal-syntax/src/Distribution/FieldGrammar/Parsec.hs#L404 is a suspect. It makes the indentation be right, but it forgets to insert empty lines when the are between input |
Actually no. The issue is in |
The #86 seems to work, I'll cleanup it later this month |
cabal-fmt strips empty lines from all fields. However, with the new free text rules (haskell/cabal#5981), empty lines seem to be the only way to break paragraphs in the description field, etc. (Previously, a line containing a single period would do the trick, and cabal-fmt preserved this.)
Can cabal-fmt be changed to preserve empty lines in free text fields?
The text was updated successfully, but these errors were encountered: