From d56de86b6af0eea59990991b75b6d0e746ee684d Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 22 Oct 2006 16:51:44 +0000 Subject: [PATCH] Fix stupid backslash quoting error that resukted in wrong conversion of command inset parameters containing a ". git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15483 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_5.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_5.py b/lib/lyx2lyx/lyx_1_5.py index c737b87bf0..29f31b5107 100644 --- a/lib/lyx2lyx/lyx_1_5.py +++ b/lib/lyx2lyx/lyx_1_5.py @@ -369,17 +369,17 @@ def convert_commandparams(document): if commandparams_info[name][0] == "": document.warning("Ignoring invalid option `%s' of command `%s'." % (option1[1:-1], name)) else: - lines.append('%s "%s"' % (commandparams_info[name][0], option1[1:-1].replace('"', '\"'))) + lines.append('%s "%s"' % (commandparams_info[name][0], option1[1:-1].replace('"', '\\"'))) if option2 != None: if commandparams_info[name][1] == "": document.warning("Ignoring invalid second option `%s' of command `%s'." % (option2[1:-1], name)) else: - lines.append('%s "%s"' % (commandparams_info[name][1], option2[1:-1].replace('"', '\"'))) + lines.append('%s "%s"' % (commandparams_info[name][1], option2[1:-1].replace('"', '\\"'))) if argument != None: if commandparams_info[name][2] == "": document.warning("Ignoring invalid argument `%s' of command `%s'." % (argument[1:-1], name)) else: - lines.append('%s "%s"' % (commandparams_info[name][2], argument[1:-1].replace('"', '\"'))) + lines.append('%s "%s"' % (commandparams_info[name][2], argument[1:-1].replace('"', '\\"'))) document.body[i:i+1] = lines i = i + 1 -- 2.39.5