Fix objects cache dump in compat for multiline vars

Multiline vars should be written as:
  _test test1\ntest2

And not
  _test test1
test2

fixes #9328

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
Markus Frosch 2015-05-28 09:48:57 +02:00 committed by Michael Friedrich
parent 11574e0bf1
commit 46fea5892c
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ void StatusDataWriter::DumpCustomAttributes(std::ostream& fp, const CustomVarObj
value = JsonEncode(kv.second);
is_json = true;
} else
value = kv.second;
value = CompatUtility::EscapeString(kv.second);
fp << "\t" "_" << kv.first << "\t" << value << "\n";
}