Merge branch 'master' of github.com:leethomason/tinyxml2
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user