Skip to content

Comments and whitespace are silently discarded #133

@ttencate

Description

@ttencate

E.g.:

$ cordova create test
Creating a new cordova project.
$ cd test
$ sed -i 's|<content src="index.html" />|<content src="index.html" /> <!-- my very important comment -->|' config.xml
$ npx cordova-set-version -v 1.2.3 config.xml
$ cat config.xml | grep important
<no output>

Less bad, but still annoying, is that all whitespace (e.g. line breaks to group related sections in the file) is ignored, and the file is reformatted according to some beauty ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions