]> granicus.if.org Git - python/commitdiff
Fix comment regex so we don't screw up structured comments with
authorFred Drake <fdrake@acm.org>
Mon, 23 Nov 1998 18:21:54 +0000 (18:21 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 23 Nov 1998 18:21:54 +0000 (18:21 +0000)
different internal indentation levels.

Doc/tools/sgmlconv/latex2esis.py

index afa2d865845f3eaa533a4cb316bcb9d83efe7dc3..cf50050476d17e2a735b569d666e6991a94b15b7 100755 (executable)
@@ -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]*{([^}]*)}")