mirror of https://github.com/Icinga/icinga2.git
Fixed indentation bug in Expression::DumpValue().
This commit is contained in:
parent
eab6411892
commit
a4451abad3
|
@ -117,8 +117,6 @@ void Expression::DumpValue(ostream& fp, int indent, const Value& value, bool inl
|
||||||
static_cast<ExpressionList::Ptr>(value)->Dump(fp, indent);
|
static_cast<ExpressionList::Ptr>(value)->Dump(fp, indent);
|
||||||
|
|
||||||
if (!inlineDict) {
|
if (!inlineDict) {
|
||||||
fp << "\n";
|
|
||||||
|
|
||||||
for (int i = 0; i < indent - 1; i++)
|
for (int i = 0; i < indent - 1; i++)
|
||||||
fp << "\t";
|
fp << "\t";
|
||||||
|
|
||||||
|
@ -135,13 +133,18 @@ void Expression::DumpValue(ostream& fp, int indent, const Value& value, bool inl
|
||||||
String k;
|
String k;
|
||||||
Value v;
|
Value v;
|
||||||
BOOST_FOREACH(tie(k, v), static_cast<Dictionary::Ptr>(value)) {
|
BOOST_FOREACH(tie(k, v), static_cast<Dictionary::Ptr>(value)) {
|
||||||
|
for (int i = 0; i < indent; i++)
|
||||||
|
fp << "\t";
|
||||||
|
|
||||||
fp << "\"" << k << "\" = ";
|
fp << "\"" << k << "\" = ";
|
||||||
DumpValue(fp, indent, v);
|
DumpValue(fp, indent, v);
|
||||||
fp << "," << "\n";
|
fp << "," << "\n";
|
||||||
|
|
||||||
|
fp << "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!inlineDict)
|
if (!inlineDict)
|
||||||
fp << "\n" << "}";
|
fp << "}";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue