STL build clips comments by the indentation amount
Brought to you by:
leethomason
sample output:
[code]
<?xml version="1.0" ?>
<test.xml>
<!--s for test.xml -->
<Hello />
</test.xml>
...
TiXmlComment* comment;
comment = new TiXmlComment();
string s;
s=" Settings for ";
s.append( argv[2] );
s.append( " " );
comment->SetValue(s.c_str());
root->LinkEndChild( comment );
...
[/code]
the comment line and the <Hello /> are indented in the original file
It just happens that the number of characters clipped was the indentation amount but the comment is still clipped by the same amount even when not indented.