Preserve Indent Context

Fixes #131
This commit is contained in:
Josh Johnson 2018-09-15 23:05:36 -04:00
parent 54ff41c736
commit 66b2bc3de2
3 changed files with 38 additions and 5 deletions

View file

@ -29,7 +29,7 @@ export class V2XmlFormatter implements XmlFormatter {
let output = "";
let indentLevel = options.initialIndentLevel;
let indentLevel = options.initialIndentLevel || 0;
let attributeQuote = "";
let lineBreakSpree = false;
let lastWordCharacter: string | undefined;