prefs2prefs for #6966, per Pavel's suggestion.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38377 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-04-14 18:31:39 +00:00
parent 099ab80a08
commit bcdb0dfcce

View File

@ -134,6 +134,17 @@ def paragraph_spacing(line):
def tabular_feature(line): def tabular_feature(line):
return simple_renaming(line, "tabular-feature", "inset-modify tabular") 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, line_insert,
toc_insert, toc_insert,
paragraph_spacing, paragraph_spacing,
tabular_feature tabular_feature,
Bar2bar
] # end conversions for format 0 ] # end conversions for format 0
] ]