XMLPrinter: Fix first line indentation

Fix indentation of first line when called with !compactMode.
This commit is contained in:
Chow Loong Jin
2020-03-26 16:30:37 +08:00
parent bd5950bb02
commit 6a514399c2
2 changed files with 24 additions and 23 deletions

View File

@@ -2332,6 +2332,11 @@ protected:
DynArray< const char*, 10 > _stack;
private:
/**
Prepares to write a new node. This includes sealing an element that was
just opened, and writing any whitespace necessary if not in compact mode.
*/
void PrepareForNewNode( bool compactMode );
void PrintString( const char*, bool restrictedEntitySet ); // prints out, after detecting entities.
bool _firstElement;