Merge pull request #308 from Dmitry-Me/mergePrintCalls

Merge Print() calls
This commit is contained in:
Lee Thomason 2015-04-02 13:27:50 -07:00
commit 51b33321be

View File

@ -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 );