emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kashyap Chamarthy <kashyap.cv@gmail.com>
To: "Juan Manuel Macías" <maciaschain@posteo.net>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: A way to avoid unwanted new lines when using paragraph quotes?
Date: Sun, 27 Dec 2020 22:15:25 +0100	[thread overview]
Message-ID: <CAOaxAcZXzfX9kiF9HBhM-cw-8-ujCoTj8Pu8+GJXnTDuV2mJrQ@mail.gmail.com> (raw)
In-Reply-To: <87a6tzukhf.fsf@posteo.net>

On Sun, Dec 27, 2020 at 8:17 PM Juan Manuel Macías
<maciaschain@posteo.net> wrote:
>
> Hello again Kashyap,

Hey, Juan

> 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.

You're right, and I agree.

> 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

Thank you for the code snippet. My only use of Emacs is Org-Mode, so I
haven't spent much time learning Elisp yet.

Regards,
Kashyap


  reply	other threads:[~2020-12-27 21:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27 13:02 A way to avoid unwanted new lines when using paragraph quotes? Kashyap Chamarthy
2020-12-27 13:55 ` Juan Manuel Macías
2020-12-27 15:52 ` Diego Zamboni
2020-12-27 18:33   ` Kashyap Chamarthy
2020-12-27 19:17     ` Juan Manuel Macías
2020-12-27 21:15       ` Kashyap Chamarthy [this message]
2020-12-27 21:25     ` Diego Zamboni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOaxAcZXzfX9kiF9HBhM-cw-8-ujCoTj8Pu8+GJXnTDuV2mJrQ@mail.gmail.com \
    --to=kashyap.cv@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=maciaschain@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).