From 59155540e328a4bb0ef17d581ff17020198b59d8 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 18 Sep 2010 14:56:25 +0000 Subject: [PATCH] Conversion for line-insert. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35433 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/prefs2prefs_lfuns.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/scripts/prefs2prefs_lfuns.py b/lib/scripts/prefs2prefs_lfuns.py index 3a0b0e2503..3427dceabd 100644 --- a/lib/scripts/prefs2prefs_lfuns.py +++ b/lib/scripts/prefs2prefs_lfuns.py @@ -97,6 +97,16 @@ def all_insets_toggle(line): return (True, newline) +re_li = re.compile(r'^(.*)\bline-insert\b(.*)$') +def line_insert(line): + m = re_li.search(line) + if not m: + return no_match + newline = m.group(1) + \ + "inset-insert line rule height 0.25ex width 100col% \\end_inset" + \ + m.group(2) + return (True, newline) + # # @@ -111,7 +121,8 @@ conversions = [ next_inset_modify, optional_insert, notes_mutate, - all_insets_toggle + all_insets_toggle, + line_insert ] # end conversions for format 0 ]