shithub: freetype+ttf2subf

Download patch

ref: 8585cf56c1110659dd4de223b31c1a8863842654
parent: 1b057040d87c22af6563e954e6e12acb1147d69c
author: Werner Lemberg <[email protected]>
date: Thu Nov 27 05:49:05 EST 2014

* src/tools/docmaker/tohtml.py: Remove redundant `<center>' tags.

This starts a series of commits into the direction of generating
valid HTML 5 code, especially using much more CSS.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-11-27  Werner Lemberg  <[email protected]>
+
+	* src/tools/docmaker/tohtml.py: Remove redundant `<center>' tags.
+
+	This starts a series of commits into the direction of generating
+	valid HTML 5 code, especially using much more CSS.
+
 2014-11-27  suzuki toshiya  <[email protected]>
 
 	Prevent too negative values (< FT_INT_MIN) in bitmap metrics,
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -80,13 +80,13 @@
 
 html_header_5 = """\
 ">TOC</a>]</font></td></tr></table>
-<center><h1>\
+<h1>\
 """
 
 html_header_5t = """\
 ">Index</a>]</font></td>
 <td width="100%"></td></tr></table>
-<center><h1>\
+<h1>\
 """
 
 html_header_6 = """\
@@ -101,8 +101,8 @@
 """
 
 # The header and footer used for each section.
-section_title_header = "<center><h1>"
-section_title_footer = "</h1></center>"
+section_title_header = "<h1>"
+section_title_footer = "</h1>"
 
 # The header and footer used for code segments.
 code_header = '<pre class="colored">'
@@ -447,7 +447,7 @@
     #
     def  toc_enter( self ):
         print self.html_toc_header
-        print "<center><h1>Table of Contents</h1></center>"
+        print "<h1>Table of Contents</h1>"
 
     def  toc_chapter_enter( self, chapter ):
         print chapter_header + string.join( chapter.title ) + chapter_inter