[Python-checkins] CVS: python/dist/src/Doc/tools support.py,1.3,1.4

Fred L. Drake fdrake@users.sourceforge.net
Mon, 22 Oct 2001 08:07:18 -0700


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory usw-pr-cvs1:/tmp/cvs-serv335/tools

Modified Files:
	support.py 
Log Message:
Do a little bit more to try and add <link> elements to the header, not that
Mozilla 0.9.5 can make intelligent use of them.  Specifically, this causes
the "Acknowledgements" and "Global Module Index" pages to acquire "up"
links in the Mozilla "Site Navigation Bar".
This partially responds to SF bug #469772.


Index: support.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/support.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** support.py	2001/02/12 15:30:22	1.3
--- support.py	2001/10/22 15:07:16	1.4
***************
*** 88,92 ****
  
      def get_header(self):
!         return HEAD % self.variables
  
      def get_footer(self):
--- 88,101 ----
  
      def get_header(self):
!         s = HEAD % self.variables
!         if self.uplink:
!             if self.uptitle:
!                 link = ('<link rel="up" href="%s" title="%s">'
!                         % (self.uplink, self.uptitle))
!             else:
!                 link = '<link rel="up" href="%s">' % self.uplink
!             repl = "  %s\n</head>" % link
!             s = s.replace("</head>", repl, 1)
!         return s
  
      def get_footer(self):