changeset 326:b7abfbfe806d

By default quote '"' and "'" also
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 06 May 2021 22:16:56 +0200
parents ab33d51f3412
children 30f8dce82850
files configmix/config.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configmix/config.py	Thu May 06 20:55:43 2021 +0200
+++ b/configmix/config.py	Thu May 06 22:16:56 2021 +0200
@@ -384,7 +384,9 @@
         s = s.replace(klass._DOT, qc + "x2e")
         s = s.replace(klass._NS_SEPARATOR, qc + "x3a")
         s = s.replace(klass._COMMENT, qc + "x23")
-        return s.replace(klass._FILTER_SEPARATOR, qc + "x7c")
+        s = s.replace(klass._FILTER_SEPARATOR, qc + "x7c")
+        s = s.replace('"', qc + "x22")
+        return s.replace("'", qc + "x27")
 
     @classmethod
     def unquote(klass, s):