Merge branch 'master' of github.com:leethomason/tinyxml2

This commit is contained in:
Lee Thomason
2020-03-01 16:47:26 -08:00
2 changed files with 1 additions and 3 deletions

View File

@@ -2635,8 +2635,6 @@ void XMLPrinter::OpenElement( const char* name, bool compactMode )
if ( _textDepth < 0 && !_firstElement && !compactMode ) { if ( _textDepth < 0 && !_firstElement && !compactMode ) {
Putc( '\n' ); Putc( '\n' );
}
if ( !compactMode ) {
PrintSpace( _depth ); PrintSpace( _depth );
} }

View File

@@ -1290,7 +1290,7 @@ int main( int argc, const char ** argv )
} }
{ {
// trying to repro ]1874301]. If it doesn't go into an infinite loop, all is well. // trying to repro [1874301]. If it doesn't go into an infinite loop, all is well.
unsigned char buf[] = "<?xml version=\"1.0\" encoding=\"utf-8\"?><feed><![CDATA[Test XMLblablablalblbl"; unsigned char buf[] = "<?xml version=\"1.0\" encoding=\"utf-8\"?><feed><![CDATA[Test XMLblablablalblbl";
buf[60] = 239; buf[60] = 239;
buf[61] = 0; buf[61] = 0;