[Python-checkins] CVS: python/nondist/peps pep2html.py,1.8,1.9

Peter Schneider-Kamp python-dev@python.org
Fri, 11 Aug 2000 15:18:07 -0700


Update of /cvsroot/python/python/nondist/peps
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17808

Modified Files:
	pep2html.py 
Log Message:

special case lines beginning with "[*]" as non-header

add optical sugar



Index: pep2html.py
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep2html.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** pep2html.py	2000/07/28 06:40:10	1.8
--- pep2html.py	2000/08/11 22:18:04	1.9
***************
*** 92,96 ****
              break
          if line[0] != "\f":
!             if line[0].strip():
                  if line.strip() == LOCALVARS:
                      break
--- 92,96 ----
              break
          if line[0] != "\f":
!             if line[0].strip() and line[:3] != '[*]':
                  if line.strip() == LOCALVARS:
                      break
***************
*** 110,115 ****
      update = 1
      for file in glob.glob("pep-*.txt"):
!         print file, "..."
!         fixfile(file, os.path.splitext(file)[0] + ".html")
  
      if len(sys.argv) > 1 and sys.argv[1] == "-n":
--- 110,116 ----
      update = 1
      for file in glob.glob("pep-*.txt"):
!         newfile = os.path.splitext(file)[0] + ".html"
!         print file, "->", newfile
!         fixfile(file, newfile)
  
      if len(sys.argv) > 1 and sys.argv[1] == "-n":