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

New commits:
commit d97019587ad7879b715f025458220de37d9be8f3
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Jan 6 16:38:08 2022 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Fri Jan 7 12:02:58 2022 +0100

    jsonwriter: encode tab space character
    
    Change-Id: Idf473f029c2e38efe817c38d4cb00bdd09648d36
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128071
    Tested-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>

diff --git a/tools/source/misc/json_writer.cxx 
b/tools/source/misc/json_writer.cxx
index 229c96f4efdb..aa78b44549da 100644
--- a/tools/source/misc/json_writer.cxx
+++ b/tools/source/misc/json_writer.cxx
@@ -159,6 +159,13 @@ void JsonWriter::put(const char* pPropName, const 
OUString& rPropVal)
             *mPos = 'n';
             ++mPos;
         }
+        else if (ch == '\t')
+        {
+            *mPos = '\\';
+            ++mPos;
+            *mPos = 't';
+            ++mPos;
+        }
         else if (ch == '\r')
         {
             *mPos = '\\';

Reply via email to