mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Allow optional arguments to LaTeX macros to span lines. This is legal in
LaTeX and we have at least one occurance of that in the content, so this script needs to support it as well.
This commit is contained in:
parent
e06cbb8c56
commit
b5fc0ab099
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ _end_env_rx = re.compile(r"[\\]end{([^}]*)}")
|
|||
_begin_macro_rx = re.compile(r"[\\]([a-zA-Z]+[*]?) ?({|\s*\n?)")
|
||||
_comment_rx = re.compile("%+ ?(.*)\n[ \t]*")
|
||||
_text_rx = re.compile(r"[^]~%\\{}]+")
|
||||
_optional_rx = re.compile(r"\s*[[]([^]]*)[]]")
|
||||
_optional_rx = re.compile(r"\s*[[]([^]]*)[]]", re.MULTILINE)
|
||||
# _parameter_rx is this complicated to allow {...} inside a parameter;
|
||||
# this is useful to match tabular layout specifications like {c|p{24pt}}
|
||||
_parameter_rx = re.compile("[ \n]*{(([^{}}]|{[^}]*})*)}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue