Skip to content

Changes to Distribution.ParseUtils.ppField generate invalid .conf file #1921

Closed

Description

@ddssff

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

  1. 23Skidoo commented on Jul 16, 2014

    @23Skidoo
    Member

    See @dan-t's comment here. What kinds of failures does this cause?

  2. dan-t commented on Jul 16, 2014

    @dan-t
    Contributor

    The prefix newline is interpreted as an empty line in the description.

  3. 23Skidoo commented on Jul 17, 2014

    @23Skidoo
    Member

    Fixed by #1998.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions