sub_tempo, str)
return str
-@rule((2, 15, 39), r"\footnote -> <>\footnote, -\footnote -> \footnote")
+@rule((2, 15, 39), r"\footnote ... -> \footnote ... \default")
def conv (str):
def not_first (s):
def match_fun (m):
return m.expand (s)
return match_fun
str = re.sub ("(" + matchmarkup + ")|"
- + r"(?<![-_^])((?:[-_^][-_^])*)(\\footnote(?:\s*"
+ + r"(\\footnote(?:\s*"
+ matchmarkup + ")?" + matcharg + "(?:" + matcharg
+ ")?\s+" + matchmarkup + ")",
- not_first (r"\2<>\3"), str)
- str = re.sub ("(" + matchmarkup + ")|"
- + r"(?<![-_^])((?:[-_^][-_^])*)-(\\footnote(?:\s*"
- + matchmarkup + ")?" + matcharg + "(?:" + matcharg
- + ")?\s+" + matchmarkup + ")",
- not_first (r"\2\3"), str)
+ not_first (r"\2 \\default"), str)
return str
# Guidelines to write rules (please keep this at the end of this file)