From 39c399a0f24e2f413c893555802dd3c9d63343cb Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 28 May 2015 15:32:27 +0300 Subject: [PATCH] Ensure proper pattern was found and printed --- tinyxml2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index fde1801..7d7026e 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -2102,12 +2102,18 @@ void XMLPrinter::PrintString( const char* p, bool restricted ) Print( "%.*s", toPrint, p ); p += toPrint; } + bool entityPatternPrinted = false; for( int i=0; i