summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv/latex2esis.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-06 21:01:19 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-06 21:01:19 (GMT)
commitb5fc0ab09937c429ee3dc77cb345269cde0367b7 (patch)
tree0076107b97bc2f90d1ceba5a11fb803ad16ed620 /Doc/tools/sgmlconv/latex2esis.py
parente06cbb8c56d76d5f845c4809a22fcdf99063496c (diff)
downloadcpython-b5fc0ab09937c429ee3dc77cb345269cde0367b7.zip
cpython-b5fc0ab09937c429ee3dc77cb345269cde0367b7.tar.gz
cpython-b5fc0ab09937c429ee3dc77cb345269cde0367b7.tar.bz2
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.
Diffstat (limited to 'Doc/tools/sgmlconv/latex2esis.py')
-rwxr-xr-xDoc/tools/sgmlconv/latex2esis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/sgmlconv/latex2esis.py b/Doc/tools/sgmlconv/latex2esis.py
index 74e1dc7..e694f56 100755
--- a/Doc/tools/sgmlconv/latex2esis.py
+++ b/Doc/tools/sgmlconv/latex2esis.py
@@ -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]*{(([^{}}]|{[^}]*})*)}")