From 4c8dad6d44f424196997a3f34cdb29d6196266bc Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 6 Nov 2020 18:40:22 +0300 Subject: [PATCH] avoid '\n' in json report. --- src/Standard/Standard_Dump.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Standard/Standard_Dump.cxx b/src/Standard/Standard_Dump.cxx index a56292f912..4d594bf61e 100644 --- a/src/Standard/Standard_Dump.cxx +++ b/src/Standard/Standard_Dump.cxx @@ -358,6 +358,10 @@ TCollection_AsciiString Standard_Dump::FormatJson (const Standard_SStream& theSt else aText += aSymbol; } + else if (aSymbol == '\n') + { + aText += ""; // json does not support multi-lined values, skip this symbol + } else aText += aSymbol; -- 2.39.5