mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
More <link> support for generated pages.
This commit is contained in:
parent
8687609a39
commit
4a4734927d
2 changed files with 24 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue