From 984e07176c98ef6513d9b2210656fec1abf57827 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 28 Nov 2014 05:33:58 +0100 Subject: [PATCH] [docmaker] Replace some `' tags with `

' and `
'. * src/tools/docmaker/tohtml.py (marker_*): Use `

'. (source_*): Use `
'. (HtmlFormatter::block_enter): s/

/

/. --- ChangeLog | 10 +++++++++- src/tools/docmaker/tohtml.py | 28 ++++++++++++++++++---------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2b744edec..dcf36ec3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2014-11-27 Werner Lemberg + + [docmaker] Replace some `

' tags with `

' and `
'. + + * src/tools/docmaker/tohtml.py (marker_*): Use `

'. + (source_*): Use `
'. + (HtmlFormatter::block_enter): s/

/

/. + 2014-11-28 suzuki toshiya Fix compiler warning to conversion specifiers in debug messages. @@ -8,7 +16,7 @@ 2014-11-27 Werner Lemberg - * src/tools/docmaker/tohtml.py: Usee more CSS for index. + * src/tools/docmaker/tohtml.py: Use more CSS for index. 2014-11-27 Werner Lemberg diff --git a/src/tools/docmaker/tohtml.py b/src/tools/docmaker/tohtml.py index 3797ff8b4..cf702e7f3 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.code { width: 100%; + background-color: #D6E8FF; + margin: 0 0 0 -0.5em; + padding: 0.3ex 0 0.3ex 0.5em; } div.indent1 { width: 87%; margin: auto; } div.indent2 { width: 75%; @@ -51,6 +55,14 @@ html_header_2 = """\ font-size: 69%; } h1 { text-align: center; } + h3 { font-size: medium; } + h4 { background-color: #EEEEFF; + width: 100%; + font-size: medium; + font-style: oblique; + font-weight: bold; + margin: 0 0 0 -0.5em; + padding: 0.3ex 0 0.3ex 0.5em; } li { text-align: justify; } @@ -64,7 +76,6 @@ html_header_2 = """\ color: darkblue; } table.center { margin: auto; } - table.fill { width: 100%; } table.index { margin: auto; border: 0; border-collapse: collapse; @@ -89,9 +100,6 @@ html_header_2 = """\ td.left { padding: 0 0.5em 0 0.5em; text-align: left; } - tr.mark { background-color: #EEEEFF; } - tr.code { background-color: #D6E8FF; } - ul.empty { list-style-type: none; } @@ -158,17 +166,17 @@ description_header = '
' description_footer = "

" # Marker header/inter/footer combination. -marker_header = '

' -marker_inter = "
" -marker_footer = "
" +marker_header = '

' +marker_inter = "

" +marker_footer = "
" # Header location header/footer. header_location_header = '
' header_location_footer = "

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

" +source_header = '
'
+source_footer = "
" # Chapter header/inter/footer. chapter_header = '

' @@ -564,7 +572,7 @@ class HtmlFormatter( Formatter ): # place html anchor if needed if block.name: - print( '

' + block.name + '

' ) + print( '

' + block.name + '

' ) # dump the block C source lines now if block.code: