导出到 org-mode 中的文本时:在标题之间插入空行

When exporting to text in org-mode: Insert blank lines between headings

由于我经常在 org-mode 中收集未解决问题的列表,我希望能够轻松地将子树导出为在单个标题之间带有一些 space 的文本(这样就有一些 space 对于 note-taking 在印刷副本上)。

Org-structure 看起来像这样:

* topic xyz
** question 1
** question 2
** question 3

包含标题之间(或之后)的可配置空行数的文本导出的预期布局:

━━━━━━━━━━
topic xyz
━━━━━━━━━━

question 1
══════════





question 2
══════════





question 3
══════════

我认为没有一种方法可以在不格式化 org 文件的情况下将换行符添加到导出中。您可以通过在希望出现空行的每一行上使用 \ 来强制换行。

你的情况:

* topic xyz
** Question 1
\
\
\
** Question 2...

在导出的文本文件中执行正则表达式替换:

replace-regex RET ^[═]+$ RET \& C-o C-o C-o

C-o 插入换行符。 c.p。 How to replace a character with a newline in Emacs?