Skip to content

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

Closed
@ddssff

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.

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