* src/tools/docmaker/tohtml.py (html_header_2): Fix typo.

Add `td.left' element to CSS.
(toc_section_enter): Use it.
This commit is contained in:
Werner Lemberg 2007-10-20 16:17:28 +00:00
parent 7f2425fb4f
commit 6684257742
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-10-20 Werner Lemberg <wl@gnu.org>
* src/tools/docmaker/tohtml.py (html_header_2): Fix typo.
Add `td.left' element to CSS.
(toc_section_enter): Use it.
2007-10-18 David Turner <david@freetype.org> 2007-10-18 David Turner <david@freetype.org>
* include/freetype/freetype.h, src/base/ftobjs.c: Rename API * include/freetype/freetype.h, src/base/ftobjs.c: Rename API

View File

@ -26,7 +26,9 @@ html_header_2= """ API Reference</title>
p { text-align: justify; } p { text-align: justify; }
h1 { text-align: center; } h1 { text-align: center; }
li { text-align: justify; } li { text-align: justify; }
td { padding: 0 0.5em 0 0.5em } td { padding: 0 0.5em 0 0.5em; }
td.left { padding: 0 0.5em 0 0.5em;
text-align: left; }
a:link { color: #0000EF; } a:link { color: #0000EF; }
a:visited { color: #51188E; } a:visited { color: #51188E; }
@ -416,7 +418,7 @@ class HtmlFormatter(Formatter):
print "<table cellpadding=5>" print "<table cellpadding=5>"
def toc_section_enter( self, section ): def toc_section_enter( self, section ):
print "<tr valign=top><td>" print '<tr valign=top><td class="left">'
print '<a href="' + self.make_section_url( section ) + '">' + \ print '<a href="' + self.make_section_url( section ) + '">' + \
section.title + '</a></td><td>' section.title + '</a></td><td>'