Skip to content

Make config writer use XmlWriter for disk write - #2110

Merged
forki merged 1 commit into
fsprojects:masterfrom
jdpage:fix-config-creation-encoding
Jan 18, 2017
Merged

forki merged 1 commit into
fsprojects:masterfrom
jdpage:fix-config-creation-encoding

Conversation

@jdpage

@jdpage jdpage commented Jan 17, 2017

Copy link
Copy Markdown

... instead of doing XmlWriter -> string -> disk.

  • This guarantees that the file encoding and the XML declaration are
    properly in sync.
  • Adds a saveNormalizedXml function to Utils to facilitate this.
  • Adds a test to UtilsSpecs for the new function.
  • Updates ConfigFile.saveConfigNode to use the new function.
  • Should fix Initial creation of paket.config produces malformed file #2003 more permanently.
  • Removes the previous fix in commit d1d06b7

... instead of doing XmlWriter -> string -> disk.
- This guarantees that the file encoding and the XML declaration are
  properly in sync.
- Adds a `saveNormalizedXml` function to Utils to facilitate this.
- Adds a test to UtilsSpecs for the new function.
- Updates ConfigFile.saveConfigNode to use the new function.
- Should fix fsprojects#2003 permanently.
- Removes the previous fix in commit d1d06b7
@forki

forki commented Jan 18, 2017

Copy link
Copy Markdown
Member

cool. thanks!

@forki
forki merged commit 243adb2 into fsprojects:master Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initial creation of paket.config produces malformed file

2 participants