From 8916a3c587b58f647ab9ae194a99b06a837874c9 Mon Sep 17 00:00:00 2001 From: Alanscut Date: Mon, 16 Sep 2019 17:03:12 +0800 Subject: [PATCH 1/2] fix wrong symbol --- xmltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index 5a07547..028953e 100755 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -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[] = " Date: Sat, 21 Sep 2019 15:51:14 +0800 Subject: [PATCH 2/2] fix issue#712 --- tinyxml2.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 6b79917..0e6fb95 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -2635,8 +2635,6 @@ void XMLPrinter::OpenElement( const char* name, bool compactMode ) if ( _textDepth < 0 && !_firstElement && !compactMode ) { Putc( '\n' ); - } - if ( !compactMode ) { PrintSpace( _depth ); }