parent
							
								
									9941bafa74
								
							
						
					
					
						commit
						e1d41f6025
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -112,12 +112,15 @@ export class V2XmlFormatter implements XmlFormatter {
 | 
			
		|||
 | 
			
		||||
            // exiting StartTag or StartTag.StartTagName, entering Text
 | 
			
		||||
            else if ((location === Location.StartTag || location === Location.StartTagName) && cc === ">") {
 | 
			
		||||
                // if this was a self-closing tag, we need to decrement the indent level
 | 
			
		||||
                // if this was a self-closing tag, we need to decrement the indent level and add a newLine
 | 
			
		||||
                if (pc === "/") {
 | 
			
		||||
                    indentLevel--;
 | 
			
		||||
                    output += `>${options.newLine}`;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                else {
 | 
			
		||||
                    output += ">";
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                lastNonTextLocation = location;
 | 
			
		||||
                location = Location.Text;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue