all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Psionic K <psionik@positron.solutions>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Varying line spacing with font-locking in org
Date: Mon, 29 Jan 2024 16:45:50 +0000	[thread overview]
Message-ID: <87h6iw3x6p.fsf@localhost> (raw)
In-Reply-To: <CADQMGARz=GF0Ppm7zKr=at4ZPGyP25Fxj2MxSSt1XO+9ckPFxw@mail.gmail.com>

Psionic K <psionik@positron.solutions> writes:

> I implemented element by element line spacing in org using font
> locking.  Here's a description of my method and some findings.
> ...
> The result is mostly satisfactory.  Two issues I ran into so far:
> 1. Org mode folding creates a situation where a different newline
> becomes the one considered for spacing and height.  This can likely be
> fixed by folding the trailing newline rather than the heading's
> newline (notified Org maintainer)

That's not trivial, but should be there on the latest main branch of Org
mode.

The reason why it is impossible to fold the trailing newline is simple:

* Heading
<begin fold>
<end fold>* Another heading

would look like

* Heading
...* Another heading

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



      reply	other threads:[~2024-01-29 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-26 12:17 Varying line spacing with font-locking in org Psionic K
2024-01-29 16:45 ` Ihor Radchenko [this message]

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

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

  git send-email \
    --in-reply-to=87h6iw3x6p.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=psionik@positron.solutions \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.