[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: |
Juan Manuel Macías |
Subject: |
Re: A way to avoid unwanted new lines when using paragraph quotes? |
Date: |
Sun, 27 Dec 2020 20:17:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hello again Kashyap,
Kashyap Chamarthy <kashyap.cv@gmail.com> writes:
> 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. :-)
I'd say a vertical space before and after a block quote would be
'typographically' correct. But if you want to eliminate the space after
the block quote, without having to modify it in a general way, it could
be solved with a bit of Elisp, by defining a custom filter so that the
<blockquote> tag would be modified only within a plain list. Thus, with the
configuration that Diego has suggested, everything would be without
vertical space except the space before each block quote:
#+BIND: org-export-filter-plain-list-functions (my-filter-html)
#+begin_src emacs-lisp :exports results :results none
(defun my-filter-html (text backend info)
(when (org-export-derived-backend-p backend 'html)
(replace-regexp-in-string "<blockquote>" "<blockquote
style=\"margin-bottom:0px\">" text)))
#+end_src
Regards,
Juan Manuel