mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-28 06:33:00 +04:00
Merge Print() calls
This commit is contained in:
+1
-3
@@ -2203,9 +2203,7 @@ void XMLPrinter::PushText( const char* text, bool cdata )
|
||||
|
||||
SealElementIfJustOpened();
|
||||
if ( cdata ) {
|
||||
Print( "<![CDATA[" );
|
||||
Print( "%s", text );
|
||||
Print( "]]>" );
|
||||
Print( "<![CDATA[%s]]>", text );
|
||||
}
|
||||
else {
|
||||
PrintString( text, true );
|
||||
|
||||
Reference in New Issue
Block a user