tools/source/misc/json_writer.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit ad9f5f24107e9f284352eb960944e408931bdaba
Author:     Szymon Kłos <[email protected]>
AuthorDate: Thu Jan 6 16:38:08 2022 +0100
Commit:     Michael Meeks <[email protected]>
CommitDate: Fri Jan 7 10:52:51 2022 +0100

    jsonwriter: encode tab space character
    
    Change-Id: Idf473f029c2e38efe817c38d4cb00bdd09648d36
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128052
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Meeks <[email protected]>

diff --git a/tools/source/misc/json_writer.cxx 
b/tools/source/misc/json_writer.cxx
index 0072e57f1eb6..a262c22dd4ef 100644
--- a/tools/source/misc/json_writer.cxx
+++ b/tools/source/misc/json_writer.cxx
@@ -165,6 +165,13 @@ void JsonWriter::writeEscapedOUString(const OUString& 
rPropVal)
             *mPos = 'n';
             ++mPos;
         }
+        else if (ch == '\t')
+        {
+            *mPos = '\\';
+            ++mPos;
+            *mPos = 't';
+            ++mPos;
+        }
         else if (ch == '\r')
         {
             *mPos = '\\';

Reply via email to