diff --git a/ChangeLog b/ChangeLog index 4fd7864d3..fb3436f18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2014-11-27 Werner Lemberg + + * src/tools/docmaker/tohtml.py: More HTML table refactoring. + + Replace some `' tags with `
' to simplify structure. + + Move `bgcolor' attribute to CSS. + + Replace most `width' attributes with CSS. The remaining instances + (providing a similar effect as LaTeX's `\hfill' command) are removed + in a later patch. + 2014-11-27 Werner Lemberg * src/tools/docmaker/tohtml.py: Replace with CSS. diff --git a/src/tools/docmaker/tohtml.py b/src/tools/docmaker/tohtml.py index 2b31371f7..6a45aace2 100644 --- a/src/tools/docmaker/tohtml.py +++ b/src/tools/docmaker/tohtml.py @@ -43,6 +43,10 @@ html_header_2 = """\ color: #000000; background: #FFFFFF; } + div.indent1 { width: 87%; + margin: auto; } + div.indent2 { width: 75%; + margin: auto; } div.timestamp { text-align: center; font-size: 69%; } @@ -60,6 +64,7 @@ html_header_2 = """\ color: darkblue; } table.center { margin: auto; } + table.fill { width: 100%; } td { padding: 0 0.5em 0 0.5em; } td.left { padding: 0 0.5em 0 0.5em; @@ -69,6 +74,9 @@ html_header_2 = """\ td.tiny { padding: 0 0.5em 0 0.5em; font-size: 69%; } + tr.mark { background-color: #EEEEFF; } + tr.code { background-color: #D6E8FF; } + ul.empty { list-style-type: none; } @@ -125,11 +133,10 @@ para_header = "

" para_footer = "

" # Block header and footer. -block_header = '
' +block_header = '
' block_footer_start = """\ -
-
- @@ -137,30 +144,30 @@ block_footer_middle = """\
[[Index][TOC]
+">TOC] """ # Description header/footer. -description_header = '
' -description_footer = "

" +description_header = '
' +description_footer = "

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

" +header_location_header = '
' +header_location_footer = "

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

" +source_header = '
\n'
+source_footer = "\n

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

' +chapter_header = '

' chapter_inter = '

  • ' -chapter_footer = '

' +chapter_footer = '' # Index footer. index_footer_start = """\