]> git.lyx.org Git - features.git/commitdiff
prefs2prefs for #6966, per Pavel's suggestion.
authorRichard Heck <rgheck@comcast.net>
Thu, 14 Apr 2011 18:31:39 +0000 (18:31 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 14 Apr 2011 18:31:39 +0000 (18:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38377 a592a061-630c-0410-9148-cb99ea01b6c8

lib/scripts/prefs2prefs_lfuns.py

index f4127cbc5fb6b51321ccd5d6a62a16586a8c050e..8c334a8c92a57505883e0fc32a42ff6bc4d127a6 100644 (file)
@@ -134,6 +134,17 @@ def paragraph_spacing(line):
 def tabular_feature(line):
        return simple_renaming(line, "tabular-feature", "inset-modify tabular")
 
+re_Bar2bar = re.compile(r'^(\\(?:bind|unbind))\s+"([^"]*)Bar"(\s+"[^"]+")')
+def Bar2bar(line):
+       m = re_Bar2bar.search(line)
+       if not m:
+               return no_match
+
+       btype = m.group(1)
+       mod = m.group(2)
+       rest = m.group(3)
+       newline = btype + " \"" + mod + "bar\"" + rest
+       return (True, newline)
 
 #
 #
@@ -152,7 +163,8 @@ conversions = [
                line_insert,
                toc_insert,
                paragraph_spacing,
-               tabular_feature
+               tabular_feature,
+               Bar2bar
        ] # end conversions for format 0
 ]