Commit 8585cf56c1110659dd4de223b31c1a8863842654

Werner Lemberg 2014-11-27T10:49:05

* 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.

diff --git a/ChangeLog b/ChangeLog
index bcb7f38..507ac72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-11-27  Werner Lemberg  <wl@gnu.org>
+
+	* 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  <mpsuzuki@hiroshima-u.ac.jp>
 
 	Prevent too negative values (< FT_INT_MIN) in bitmap metrics,
diff --git a/src/tools/docmaker/tohtml.py b/src/tools/docmaker/tohtml.py
index aa4ccbe..f82cffa 100644
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -80,13 +80,13 @@ html_header_4 = """\
 
 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 @@ html_footer = """\
 """
 
 # 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 @@ class  HtmlFormatter( Formatter ):
     #
     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