emacs-orgmode
[Top][All Lists]
Advanced

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

Re: newline or no newline at end of capture: expected behavior


From: Nicolas Goaziou
Subject: Re: newline or no newline at end of capture: expected behavior
Date: Sun, 27 Sep 2020 12:39:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hello,

Samuel Wales <samologist@gmail.com> writes:

> thank you.  when i can, i will try explicitly setting all three to 0
> to see if that prevents the unwanted newlines, in the buffer with
> newline on last line, and empty buffer, cases.
>
> the docstring says empty-lines defaults to 0, which is what i want.
> it does not say what the default for after and before are.
>
> it /sounds/ like capture is supposed to produce the desired number
> [and position] of empty lines regardless of whether the buffer is
> empty or there is or is not a trailing newline on the final line of
> hte buffer.  is this more or less correct?

I didn't read the whole thread, but a final newline is mandatory in all
capture templates, independently on the number of desired blank lines.
If such final newline is not provided, the capture mechanism will add
one.

The only exception is about empty capture templates, which are left
as-is, i.e. a "final newline" is not added in that case.

I don't know if that answers your question, but HTH.

Regards,
-- 
Nicolas Goaziou



reply via email to

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