]> git.lyx.org Git - features.git/commitdiff
Escape quotes in module descriptions. Amazingly,
authorRichard Heck <rgheck@comcast.net>
Thu, 27 May 2010 15:23:25 +0000 (15:23 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 27 May 2010 15:23:25 +0000 (15:23 +0000)
this actually seems to work with no changes in the
C++ code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34528 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index c79be8a9ca691ff66eecbbb52ab6065fb2659bc6..d379f5b0eb9346ee92bf889f6cbb705987bac540 100644 (file)
@@ -1107,6 +1107,8 @@ def processModuleFile(file, bool_docbook):
         if res != None:
           readingDescription = False
           desc = " ".join(descLines)
+          # Escape quotes.
+          desc = desc.replace('"', '\\"')
           continue
         descLines.append(line[1:].strip())
         continue