Fix whitespace differences in sqlproj (#13805)

* add whiteSpaceAtEndOfSelfclosingTag

* update test baselines
This commit is contained in:
Kim Santiago
2020-12-15 11:44:41 -08:00
committed by GitHub
parent 725cd9f82f
commit 9adffbb950
8 changed files with 81 additions and 76 deletions

View File

@@ -902,7 +902,12 @@ export class Project {
private async serializeToProjFile(projFileContents: any): Promise<void> {
let xml = new xmldom.XMLSerializer().serializeToString(projFileContents);
xml = xmlFormat(xml, <any>{ collapseContent: true, indentation: ' ', lineSeparator: os.EOL }); // TODO: replace <any>
xml = xmlFormat(xml, <any>{
collapseContent: true,
indentation: ' ',
lineSeparator: os.EOL,
whiteSpaceAtEndOfSelfclosingTag: true
}); // TODO: replace <any>
await fs.writeFile(this.projectFilePath, xml);
}