#109 STL build clips comments by the indentation amount

open
nobody
None
5
2010-06-28
2010-06-28
jonathan.80063r
No

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]

Discussion

  • 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.