Merge pull request #111 from DotJoshJohnson/issue-#109
Fix Formatter Regression
This commit is contained in:
commit
33b510e383
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ export class XmlFormatter {
|
|||
}
|
||||
|
||||
let parts: string[] = xml.split('~::~');
|
||||
|
||||
console.log(parts);
|
||||
let inComment: boolean = false;
|
||||
let level: number = 0;
|
||||
let output: string = '';
|
||||
|
@ -98,7 +98,7 @@ export class XmlFormatter {
|
|||
}
|
||||
|
||||
// xmlns
|
||||
else if (parts[i].search(/xmlns\:/) > -1 || parts[i].search(/xmlns\=/) > -1) {
|
||||
else if (this.splitNamespaces && (parts[i].search(/xmlns\:/) > -1 || parts[i].search(/xmlns\=/) > -1)) {
|
||||
output += this._getIndent(level, parts[i]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue