I suggest to change three lines for addition of blanks before and after the comment:
(in TiXmlComment::Print) before change: fprintf( cfile, "<!--%s-->", value.c_str() ); after change: fprintf( cfile, "<!-- %s -->", value.c_str() );
(in TiXmlComment::StreamOut) before change: (*stream) << "<!--"; (*stream) << "-->"; after change: (*stream) << "<!-- "; (*stream) << " -->";
i.e. <!-- Comment --> instead of <!--Comment-->
Log in to post a comment.
I suggest to change three lines for addition of blanks before and after the comment:
(in TiXmlComment::Print)
before change:
fprintf( cfile, "<!--%s-->", value.c_str() );
after change:
fprintf( cfile, "<!-- %s -->", value.c_str() );
(in TiXmlComment::StreamOut)
before change:
(*stream) << "<!--";
(*stream) << "-->";
after change:
(*stream) << "<!-- ";
(*stream) << " -->";
i.e. <!-- Comment -->
instead of <!--Comment-->