cleanup version header, too
This commit is contained in:
parent
958cd5cfe3
commit
e0189b5a17
|
@ -242,6 +242,9 @@ def fixfile(inpath, input_lines, outfile):
|
||||||
url = PEPURL % 9
|
url = PEPURL % 9
|
||||||
pep_type = v or 'text/plain'
|
pep_type = v or 'text/plain'
|
||||||
v = '<a href="%s">%s</a> ' % (url, cgi.escape(pep_type))
|
v = '<a href="%s">%s</a> ' % (url, cgi.escape(pep_type))
|
||||||
|
elif k.lower() == 'version':
|
||||||
|
if v.startswith('$' 'Revision: ') and v.endswith(' $'):
|
||||||
|
v = cgi.escape(v[11:-2])
|
||||||
else:
|
else:
|
||||||
v = cgi.escape(v)
|
v = cgi.escape(v)
|
||||||
print >> outfile, ' <tr><th>%s: </th><td>%s</td></tr>' \
|
print >> outfile, ' <tr><th>%s: </th><td>%s</td></tr>' \
|
||||||
|
|
Loading…
Reference in New Issue