forked from external/vscode-xml
Expose Initial Indent Level
This commit is contained in:
parent
46f89911a2
commit
54ff41c736
2 changed files with 5 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ export class V2XmlFormatter implements XmlFormatter {
|
|||
|
||||
let output = "";
|
||||
|
||||
let indentLevel = 0;
|
||||
let indentLevel = options.initialIndentLevel;
|
||||
let attributeQuote = "";
|
||||
let lineBreakSpree = false;
|
||||
let lastWordCharacter: string | undefined;
|
||||
|
|
@ -194,7 +194,7 @@ export class V2XmlFormatter implements XmlFormatter {
|
|||
&& cc === "/"
|
||||
&& pc !== " "
|
||||
&& options.enforcePrettySelfClosingTagOnFormat) {
|
||||
output += " /";
|
||||
output += " /";
|
||||
}
|
||||
|
||||
// exiting StartTag or StartTag.StartTagName, entering Text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue