Hello,

Igor Perepelytsya <igorqu...@gmail.com> writes:

> Using a template with org-capture to create a new org entry will add an
> unwanted newline after it. This occurs regardless of the contents of the
> template file, whether or not the 'empty-lines 1' / 'empty-lines-after
> 1' checkboxes are ticked in org-customize, or `empty-lines` /
> `empty-lines-after` keys are set to 0 manually. I expected that there
> would be no newline added by default after a template is inserted into
> an org-capture buffer.
>
> This appears to happen because
> `org-capture-place-(entry/plain-text/etc)` defuns in org-capture.el have
> `(org-capture-empty-lines-after 1)` in them by default. Changing this to
> `(org-capture-empty-lines-after)` and byte-compiling the file fixes the
> issue. I am not aware of any reason for 1 to be the default forced value
> here.

Would you want to provide a patch for that? Some tests in
"test-org-capture.el" would also be highly appreciated.

Regards,

-- 
Nicolas Goaziou

Reply via email to