X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fconvertrules.py;h=acabe0237e452869b4648caf98180af7c8ace815;hb=94c0a1343826f84fc78006d07f6ed92e82b6ec02;hp=5c94c59e1f7a88a42aa4cad91598cff460f37965;hpb=2944a83e59f487894a214769392ce27289accb71;p=lilypond.git diff --git a/python/convertrules.py b/python/convertrules.py index 5c94c59e1f..acabe0237e 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3346,6 +3346,25 @@ def conv (str): sub_tempo, str) return str +@rule((2, 15, 39), r"\footnote -> <>\footnote, -\footnote -> \footnote") +def conv (str): + def not_first (s): + def match_fun (m): + if m.group (1): + return m.group (0) + return m.expand (s) + return match_fun + str = re.sub ("(" + matchmarkup + ")|" + + r"(?\3"), str) + str = re.sub ("(" + matchmarkup + ")|" + + r"(?