Subject: Re: bug#53251: 28.0.90; [PATCH] GNU ELPA: Add margin to 'pre' element

From: Y. E. <[email-masked]>
Date: Mon, 24 Jan 2022 18:20:49 +0200

Philip Kaludercic <[email-masked]> writes:

> Y. E. <[email-masked]> writes:
>
>> Minor style change to improve packages 'Full Description' output. Few of
>> the influenced pages:
>>
>> - http://elpa.gnu.org/packages/cape.html
>> - http://elpa.gnu.org/packages/consult.html
>> - http://elpa.gnu.org/packages/corfu.html
>> - http://elpa.gnu.org/packages/csharp-mode.html
>> - http://elpa.gnu.org/packages/devdocs.html
>> - http://elpa.gnu.org/packages/embark.html
>> - http://elpa.gnu.org/packages/embark-consult.html
>>
>> Among the pages I checked (many but not all), none was influenced
>> negatively.
>
> All these packages use org-mode READMEs, that are converted to HTML,
> right?  To avoid unintended side-effects, it might be better to only
> apply this to "pre.src", not all "pre" blocks.

Sounds good to me. I'm attaching the patch with this change.

>From 060945150ef443d6bea00a28376b08da7f8340ac Mon Sep 17 00:00:00 2001
From: YugaEgo <[email-masked]>
Date: Mon, 24 Jan 2022 18:17:06 +0200
Subject: [PATCH] * html/layout.css (pre.src): Add margin-bottom

---
 html/layout.css | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/html/layout.css b/html/layout.css
index 48f9aa5fc7..963d19d6d6 100644
--- a/html/layout.css
+++ b/html/layout.css
@@ -126,6 +126,10 @@ pre .kw {
   color: #4f0f71;
 }
 
+pre.src {
+  margin-bottom: 2em;
+}
+
 p {
   margin-bottom: 2em;
 }
-- 
2.34.1