diff --git a/ChangeLog b/ChangeLog index 1280f7e63..cb04d019a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-11-27 Werner Lemberg + + * src/tools/docmaker/tohtml.py: Center with CSS. + 2014-11-27 Werner Lemberg * src/tools/docmaker/tohtml.py: Replace `
' with `
'. diff --git a/src/tools/docmaker/tohtml.py b/src/tools/docmaker/tohtml.py index 7df609ecd..e018cd7cc 100644 --- a/src/tools/docmaker/tohtml.py +++ b/src/tools/docmaker/tohtml.py @@ -59,6 +59,8 @@ html_header_2 = """\ white-space: pre; color: darkblue; } + table.center { margin: auto; } + td { padding: 0 0.5em 0 0.5em; } td.left { padding: 0 0.5em 0 0.5em; text-align: left; } @@ -70,11 +72,11 @@ html_header_2 = """\ """ html_header_3 = """ -
+
[
[
[

- @@ -135,24 +137,24 @@ block_footer_end = """\ """ # Description header/footer. -description_header = '
[
[Index]
' +description_header = '
' description_footer = "

" # Marker header/inter/footer combination. -marker_header = '
' +marker_header = '
' marker_inter = "
" marker_footer = "
" # Header location header/footer. -header_location_header = '
' +header_location_header = '
' header_location_footer = "

" # Source code extracts header/footer. -source_header = '
\n'
+source_header = '
\n'
 source_footer = "\n

" # Chapter header/inter/footer. -chapter_header = '

' +chapter_header = '

' chapter_inter = '

  • ' chapter_footer = '
' @@ -417,7 +419,7 @@ class HtmlFormatter( Formatter ): count = len( self.block_index ) rows = ( count + self.columns - 1 ) / self.columns - print '' + print '
' for r in range( rows ): line = "" for c in range( self.columns ): @@ -513,7 +515,7 @@ class HtmlFormatter( Formatter ): if maxwidth <> 0: # print section synopsis print section_synopsis_header - print '
' + print '
' columns = width / maxwidth if columns < 1: