emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A way to avoid unwanted new lines when using paragraph quotes?


From: Kashyap Chamarthy
Subject: Re: A way to avoid unwanted new lines when using paragraph quotes?
Date: Sun, 27 Dec 2020 19:33:39 +0100

On Sun, Dec 27, 2020 at 4:53 PM Diego Zamboni <diego@zzamboni.org> wrote:
>
> Hi Kashyap,

Hi, Diego

> The problem seems to be that when the HTML exporter finds more than one 
> element within a list item, it wraps each one in its own set of =<p>...</p>= 
> tags, which creates the additional space. You can see that this has nothing 
> to do with the quotes, just inserting a second paragraph within the list item 
> triggers this, e.g.:

Ah, I see.  So it's any element within a list item that's wrapped in
paragraph tags.

> ------
> 3. Test 3
>    - sub bullet under test 3, with a quote:
>
>      another paragraph within the bullet
> ------
>
> As Juan Manuel suggested, one way to fix the visual difference is with CSS. 
> To be more selective, you could style only <p> items with a <li>, like this:
>
> #+HTML_HEAD: <style>li p { margin: 0em; }</style>

Hmm, that fixes the new line before the "sub bullet under test 3, with
a quote".  However, a new line still remains after the quote ends (and
before the "Test 4" starts).  Is it possible to nuke that too?  If
not, that's okay, I can live with it. :-)

> In my test, this eliminates the spacing before those items, making them all 
> look the same in the browser.
>
> Looking at the ox-html code, there doesn't seem to be a way to prevent this 
> from happening at the moment, a plain paragraph is always wrapped in <p> tags.

Thanks for taking the time to look at the code.

[...]

/kashyap



reply via email to

[Prev in Thread] Current Thread [Next in Thread]