Revert "remove newline from JSON output"

This reverts commit d3e496ef6b.
This commit is contained in:
john30
2018-12-26 15:27:47 +01:00
parent 4d742f5b33
commit caedcc6cb5
2 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -463,7 +463,7 @@ void SingleDataField::dumpPrefix(bool prependFieldSeparator, bool asJson, ostrea
if (prependFieldSeparator) {
*output << FIELD_SEPARATOR;
}
*output << " {";
*output << "\n {";
appendJson(false, "name", m_name, true, output);
} else {
dumpString(prependFieldSeparator, m_name, output);
@@ -538,7 +538,7 @@ result_t SingleDataField::read(const SymbolString& data, size_t offset,
*output << ",";
}
if (fieldIndex < 0 && !shortFormat) {
*output << " ";
*output << "\n ";
}
if (outputIndex >= 0 || m_name.empty() || !(outputFormat & OF_NAMES)) {
if (fieldIndex < 0) {