Menu

#109 STL build clips comments by the indentation amount

open
nobody
None
5
2010-06-28
2010-06-28
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

  • jonathan.80063r

    jonathan.80063r - 2010-06-28

    the comment line and the <Hello /> are indented in the original file

     
  • jonathan.80063r

    jonathan.80063r - 2010-06-28

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.