Author: jamatos
Date: Fri Mar 11 18:18:37 2011
New Revision: 37902
URL: http://www.lyx.org/trac/changeset/37902

Log:
Fix pref2pref bug with optional quotes

Modified:
   lyx-devel/trunk/lib/scripts/prefs2prefs_prefs.py

Modified: lyx-devel/trunk/lib/scripts/prefs2prefs_prefs.py
==============================================================================
--- lyx-devel/trunk/lib/scripts/prefs2prefs_prefs.py    Fri Mar 11 07:11:55 
2011        (r37901)
+++ lyx-devel/trunk/lib/scripts/prefs2prefs_prefs.py    Fri Mar 11 18:18:37 
2011        (r37902)
@@ -49,7 +49,7 @@
 def language_use_babel(line):
        if not line.startswith("\language_use_babel"):
                return no_match
-       re_lub = re.compile(r'^\\language_use_babel\s+(true|false)')
+       re_lub = re.compile(r'^\\language_use_babel\s+"?(true|false)')
        m = re_lub.match(line)
        val = m.group(1)
        newval = '0'

Reply via email to