]> OCCT Git - occt-copy.git/commitdiff
avoid '\n' in json report.
authornds <nds@opencascade.com>
Fri, 6 Nov 2020 15:40:22 +0000 (18:40 +0300)
committernds <nds@opencascade.com>
Fri, 6 Nov 2020 15:40:22 +0000 (18:40 +0300)
src/Standard/Standard_Dump.cxx

index a56292f912f93f754d99d7a9d26f16b7d269d07d..4d594bf61e69cac7b27fadc7dd31211a456d2e50 100644 (file)
@@ -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;