diff options
author | Fred Drake <fdrake@acm.org> | 2002-10-30 21:32:40 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-10-30 21:32:40 (GMT) |
commit | 4a4734927db2c23f2450d49a085c6143014e3bf9 (patch) | |
tree | 9fe562c190b7d3ace99d6e174a0c21be9cb25f1f /Doc/tools/support.py | |
parent | 8687609a3907cdb18a168d25fe889e628b3a2384 (diff) | |
download | cpython-4a4734927db2c23f2450d49a085c6143014e3bf9.zip cpython-4a4734927db2c23f2450d49a085c6143014e3bf9.tar.gz cpython-4a4734927db2c23f2450d49a085c6143014e3bf9.tar.bz2 |
More <link> support for generated pages.
Diffstat (limited to 'Doc/tools/support.py')
-rw-r--r-- | Doc/tools/support.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/tools/support.py b/Doc/tools/support.py index 30d4575..cd42fd0 100644 --- a/Doc/tools/support.py +++ b/Doc/tools/support.py @@ -111,10 +111,14 @@ class Options: s = HEAD % self.variables if self.uplink: if self.uptitle: - link = ('<link rel="up" href="%s" title="%s">' - % (self.uplink, self.uptitle)) + link = ('<link rel="up" href="%s" title="%s">\n ' + '<link rel="start" href="%s" title="%s">' + % (self.uplink, self.uptitle, + self.uplink, self.uptitle)) else: - link = '<link rel="up" href="%s">' % self.uplink + link = ('<link rel="up" href="%s">\n ' + '<link rel="start" href="%s">' + % (self.uplink, self.uplink)) repl = " %s\n</head>" % link s = s.replace("</head>", repl, 1) if self.aesop_type: |