Skip to content

Respect blank lines in capture templates #2192

@rudolf-adamkovic

Description

@rudolf-adamkovic

Given template.org

#+title: ${title}

%?

* References
:PROPERTIES:
:UNNUMBERED: t
:END:
#+PRINT_BIBLIOGRAPHY:

and

(setq org-roam-capture-templates
        '(("d" "default" plain (file "~/org/template.org")
           :target (file "${slug}.org")
           :empty-lines-before 1
           :unnarrowed t)))

I expect

:PROPERTIES:
:ID: 163005CB-0AA5-4AD4-AFBD-7E10272DF748
:END:

#+title: Example

|

* References
:PROPERTIES:
:UNNUMBERED: t
:END:
#+PRINT_BIBLIOGRAPHY:

but I get

:PROPERTIES:
:ID: 163005CB-0AA5-4AD4-AFBD-7E10272DF748
:END:

#+title: Example
|
* References
:PROPERTIES:
:UNNUMBERED: t
:END:
#+PRINT_BIBLIOGRAPHY:

Any tips how I can make Org Roam respect the template? I want to avoid typing RET RET C-p every time I create a new node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions