Commit f10584cb authored by Fred Drake's avatar Fred Drake

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.
parent 5d9a6b57
......@@ -87,7 +87,16 @@ class Options:
raise getopt.error("option %s not recognized" % opt)
def get_header(self):
return HEAD % self.variables
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):
return TAIL % self.variables
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment