From 434bc695739e9c679bfc09c0f9637930146ee35c Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 29 Nov 2014 23:12:55 +0100 Subject: [PATCH] * src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing. --- ChangeLog | 8 ++++++-- src/tools/docmaker/tohtml.py | 15 +++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3e64496c..cbd25e60c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,12 @@ 2014-11-29 Werner Lemberg - [docmaker] Improve HTML code for table of contents.. + * src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing. - * src/toold/docmaker/tohtml.py: Introduce a new table class `toc', +2014-11-29 Werner Lemberg + + [docmaker] Improve HTML code for table of contents. + + * src/tools/docmaker/tohtml.py: Introduce a new table class `toc', together with proper CSS. 2014-11-29 Werner Lemberg diff --git a/src/tools/docmaker/tohtml.py b/src/tools/docmaker/tohtml.py index 7d32cec9c..cd170451e 100644 --- a/src/tools/docmaker/tohtml.py +++ b/src/tools/docmaker/tohtml.py @@ -83,10 +83,11 @@ html_header_2 = """\ text-align: right; width: 30%; vertical-align: baseline; - padding: 0 1em 0 0; } + padding: 1ex 1em 1ex 0; } table.fields td.desc { vertical-align: baseline; - padding: 0 0 0 1em; } - table.fields td.desc p { margin: 1.5ex 0 1.5ex 0; } + padding: 1ex 0 1ex 1em; } + table.fields td.desc p:first-child { margin: 0; } + table.fields td.desc p { margin: 1.5ex 0 0 0; } table.index { margin: 6ex auto 6ex auto; border: 0; border-collapse: separate; @@ -115,11 +116,13 @@ html_header_2 = """\ table.toc td.link { width: 30%; text-align: right; vertical-align: baseline; - padding: 0 1em 0 0; } + padding: 1ex 1em 1ex 0; } table.toc td.desc { vertical-align: baseline; - padding: 0 0 0 1em; + padding: 1ex 0 1ex 1em; text-align: left; } - table.toc td.desc p { margin: 1.5ex 0 1.5ex 0; + table.toc td.desc p:first-child { margin: 0; + text-align: left; } + table.toc td.desc p { margin: 1.5ex 0 0 0; text-align: left; }