removed confusing getter/setter. cleaned up comments.

This commit is contained in:
Lee Thomason 2012-06-04 17:01:38 -07:00
parent 6e0e38b372
commit 7b1b86a1c9
2 changed files with 10 additions and 12 deletions

View File

@ -1378,14 +1378,6 @@ public:
*/
const int CStrSize()const{ return buffer.Size(); }
/**
Set printer to compact mode, for printing without '\n' and space,
let output file smaller.
*/
void SetCompactMode( bool on ){ compactMode = on; }
bool IsCompactMode()const{ return compactMode; };
private:
void SealElement();
void PrintSpace( int depth );

View File

@ -248,10 +248,16 @@ int main( int /*argc*/, const char ** /*argv*/ )
doc->Print();
XMLPrinter streamer;
doc->Print( &streamer );
printf( "%s", streamer.CStr() );
{
XMLPrinter streamer;
doc->Print( &streamer );
printf( "%s", streamer.CStr() );
}
{
XMLPrinter streamer( 0, true );
doc->Print( &streamer );
XMLTest( "Compact mode", "<element><sub attrib=\"1\"/><sub/></element>", streamer.CStr(), false );
}
delete doc;
}
{