mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-15 11:51:37 +00:00
Merge pull request #308 from Dmitry-Me/mergePrintCalls
Merge Print() calls
This commit is contained in:
commit
51b33321be
@ -2206,9 +2206,7 @@ void XMLPrinter::PushText( const char* text, bool cdata )
|
|||||||
|
|
||||||
SealElementIfJustOpened();
|
SealElementIfJustOpened();
|
||||||
if ( cdata ) {
|
if ( cdata ) {
|
||||||
Print( "<![CDATA[" );
|
Print( "<![CDATA[%s]]>", text );
|
||||||
Print( "%s", text );
|
|
||||||
Print( "]]>" );
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PrintString( text, true );
|
PrintString( text, true );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user