From bcdb0dfcce1112d9201b92527d1d90c4308bb2cc Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 14 Apr 2011 18:31:39 +0000 Subject: [PATCH] prefs2prefs for #6966, per Pavel's suggestion. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38377 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/prefs2prefs_lfuns.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/scripts/prefs2prefs_lfuns.py b/lib/scripts/prefs2prefs_lfuns.py index f4127cbc5f..8c334a8c92 100644 --- a/lib/scripts/prefs2prefs_lfuns.py +++ b/lib/scripts/prefs2prefs_lfuns.py @@ -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 ] -- 2.39.5