[Python-checkins] CVS: python/dist/src/Doc/tools/sgmlconv latex2esis.py,1.23,1.24

Fred L. Drake fdrake@users.sourceforge.net
2001年7月06日 14:01:21 -0700


Update of /cvsroot/python/python/dist/src/Doc/tools/sgmlconv
In directory usw-pr-cvs1:/tmp/cvs-serv3089
Modified Files:
	latex2esis.py 
Log Message:
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.
Index: latex2esis.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/sgmlconv/latex2esis.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** latex2esis.py	2001年03月23日 16:53:34	1.23
--- latex2esis.py	2001年07月06日 21:01:19	1.24
***************
*** 57,61 ****
 _comment_rx = re.compile("%+ ?(.*)\n[ \t]*")
 _text_rx = re.compile(r"[^]~%\\{}]+")
! _optional_rx = re.compile(r"\s*[[]([^]]*)[]]")
 # _parameter_rx is this complicated to allow {...} inside a parameter;
 # this is useful to match tabular layout specifications like {c|p{24pt}}
--- 57,61 ----
 _comment_rx = re.compile("%+ ?(.*)\n[ \t]*")
 _text_rx = re.compile(r"[^]~%\\{}]+")
! _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}}

AltStyle によって変換されたページ (->オリジナル) /