summaryrefslogtreecommitdiffstats
path: root/Doc/tools/support.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-10-30 21:32:40 (GMT)
committerFred Drake <fdrake@acm.org>2002-10-30 21:32:40 (GMT)
commit4a4734927db2c23f2450d49a085c6143014e3bf9 (patch)
tree9fe562c190b7d3ace99d6e174a0c21be9cb25f1f /Doc/tools/support.py
parent8687609a3907cdb18a168d25fe889e628b3a2384 (diff)
downloadcpython-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.py10
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: