html = html_file.read()
html_file.close()
+ if fname in ("init.py", "pdbrc.py"):
+ dot_name = fname
+ txt_name = fname + '.txt'
+ else:
+ dot_name = '.' + fname
+ txt_name = fname
+
html_file = open(html_fname, 'w')
html_file.write("#extends phd_pp_ru\n")
html_file.write("#implements respond\n")
- html_file.write("#attr $Title = \".%s\"\n" % fname)
+ html_file.write("#attr $Title = \"%s\"\n" % dot_name)
html_file.write("#attr $Copyright = 2003\n")
if prev:
html_file.write("#attr $Prev = \"%s.html\"\n" % prev)
if next:
html_file.write("#attr $Next = \"%s.html\"\n" % next)
- html_file.write('#attr $alternates = (("text/plain", "Plain text version", "%s"),)' % fname)
+ html_file.write('#attr $alternates = (("text/plain", "Plain text version", "%s"),)' % txt_name)
html_file.write("\n")
html_file.write("#def body_html\n")
html_file.write("#raw\n")