[libvirt PATCH] docs: reduce excessive spacing in ToC for RST files

Daniel P. Berrangé posted 1 patch 4 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200207160502.2784403-1-berrange@redhat.com
docs/libvirt.css | 4 ++++
1 file changed, 4 insertions(+)
[libvirt PATCH] docs: reduce excessive spacing in ToC for RST files
Posted by Daniel P. Berrangé 4 years, 2 months ago
The table of contents in the RST based files uses <p> tags inside the
<li>, which results in 1em's worth of spacing above & below each
entry. This results in way too much whitespace in the ToC.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 docs/libvirt.css | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/libvirt.css b/docs/libvirt.css
index 2fe123395c..18e55dac59 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -579,3 +579,7 @@ ul.news-section-content li dl dd {
     font-family: monospace;
     background: #eeeeee;
 }
+
+.contents li p {
+    margin: 2px;
+}
-- 
2.24.1

Re: [libvirt PATCH] docs: reduce excessive spacing in ToC for RST files
Posted by Ján Tomko 4 years, 2 months ago
On Fri, Feb 07, 2020 at 04:05:02PM +0000, Daniel P. Berrangé wrote:
>The table of contents in the RST based files uses <p> tags inside the
><li>, which results in 1em's worth of spacing above & below each
>entry. This results in way too much whitespace in the ToC.
>
>Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
>---
> docs/libvirt.css | 4 ++++
> 1 file changed, 4 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano