0

As I often collect lists of open question in org-mode, I want to be able to easily export the subtree to text with some space between the single headings (such that there is some space for note-taking on a printed copy).

Org-structure looks like this:

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

Expected layout of the text export containing configurable number of blank lines between (or after) headings:

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

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





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





question 3
══════════
baruch
  • 137
  • 1
  • 13

2 Answers2

0

I don't think there is a way to add newlines to your export without formatting your org file. You can enforce newlines by using \\ on each line where you want an empty line to appear.

In your case:

* topic xyz
** Question 1
\\
\\
\\
** Question 2...
CantrianBear
  • 1,013
  • 1
  • 12
  • 22
  • 2
    This does not work for me. The backslashes are exported too. As I do not want to modify my org-file, this would not to be the ideal solution anyway. – baruch Apr 07 '16 at 07:50
0

Execute a regex replacement in the exported text file:

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

C-o inserts the newlines. c.p. How to replace a character with a newline in Emacs?

Community
  • 1
  • 1
baruch
  • 137
  • 1
  • 13