You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changes to Distribution.ParseUtils.ppField generate invalid .conf file #1921
The new ppField function in version 1.20, when passed a description with a leading newline, now generates a field with a leading blank line and no ".":
ppField "description" (text "\n this is a description\n second line")
Loading package pretty-1.1.1.1 ... linking ... done.
description:
this is a description
second line
When written to the package.conf file this is an illegal format. Previously the output was
> ppField "description" (text "\n this is a description\n second line")
description:
this is a description
second line
An example of a .cabal file for which this causes problems is in the vector package.
Activity
More diff friendly pretty printing of cabal files
23Skidoo commentedon Jul 16, 2014
See @dan-t's comment here. What kinds of failures does this cause?
dan-t commentedon Jul 16, 2014
The prefix newline is interpreted as an empty line in the description.
23Skidoo commentedon Jul 17, 2014
Fixed by #1998.