diff options
author | Fred Drake <fdrake@acm.org> | 1998-11-23 18:21:54 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-11-23 18:21:54 (GMT) |
commit | 5701482ea797604a3f0f1c310738e24605d9107f (patch) | |
tree | b8b6d6ff5ea4ae9745067d34a3804f6c5cb53b7e | |
parent | 04307ce78909562cef566afc987250019cec1f73 (diff) | |
download | cpython-5701482ea797604a3f0f1c310738e24605d9107f.zip cpython-5701482ea797604a3f0f1c310738e24605d9107f.tar.gz cpython-5701482ea797604a3f0f1c310738e24605d9107f.tar.bz2 |
Fix comment regex so we don't screw up structured comments with
different internal indentation levels.
-rwxr-xr-x | Doc/tools/sgmlconv/latex2esis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/sgmlconv/latex2esis.py b/Doc/tools/sgmlconv/latex2esis.py index afa2d86..cf50050 100755 --- a/Doc/tools/sgmlconv/latex2esis.py +++ b/Doc/tools/sgmlconv/latex2esis.py @@ -24,7 +24,7 @@ class LaTeXFormatError(Error): _begin_env_rx = re.compile(r"[\\]begin{([^}]*)}") _end_env_rx = re.compile(r"[\\]end{([^}]*)}") _begin_macro_rx = re.compile("[\\\\]([a-zA-Z]+[*]?)({|\\s*\n?)") -_comment_rx = re.compile("%+[ \t]*(.*)\n") +_comment_rx = re.compile("%+ ?(.*)\n") _text_rx = re.compile(r"[^]%\\{}]+") _optional_rx = re.compile(r"\s*[[]([^]]*)[]]") _parameter_rx = re.compile("[ \n]*{([^}]*)}") |