mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
Correct indentation
This commit is contained in:
@@ -150,7 +150,13 @@ void Document::read(BinaryReader& reader)
|
|||||||
std::string Document::toString(int indent) const
|
std::string Document::toString(int indent) const
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << "{" << std::endl;
|
|
||||||
|
oss << "{";
|
||||||
|
if ( indent > 0 )
|
||||||
|
{
|
||||||
|
oss << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
for(ElementSet::const_iterator it = _elements.begin(); it != _elements.end(); ++it)
|
for(ElementSet::const_iterator it = _elements.begin(); it != _elements.end(); ++it)
|
||||||
{
|
{
|
||||||
if ( it != _elements.begin() )
|
if ( it != _elements.begin() )
|
||||||
@@ -189,7 +195,8 @@ std::string Document::toString(int indent) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
oss << "}" << std::endl;
|
oss << "}";
|
||||||
|
|
||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user