bshanks
bshanks

Reputation: 1248

In orgmode ASCII export, omit blank lines between items in list

Consider the following:

#+OPTIONS: num:nil toc:nil
#+AUTHOR: 

* h1
** h2
*** h3
**** item 1
**** item 2
**** item 3

When using ASCII export, orgmode renders that as:

h1
==

h2
~~

h3
--

* item 1


* item 2


* item 3

I don't like all of the blank lines (or empty lines, or newlines) between the itemized list items. I would prefer it to render as:

h1
==

h2
~~

h3
--

* item 1
* item 2
* item 3

How do I accomplish that?

Upvotes: 1

Views: 326

Answers (1)

NickD
NickD

Reputation: 6422

Probably the simplest way is to customize org-ascii-headline-spacing and set it to nil. That will make the spacing of the output mirror the spacing of the input, so you can set it exactly as you want

The doc string of org-ascii-headline-spacing says:

Number of blank lines inserted around headlines.

This variable can be set to a cons cell. In that case, its car represents the number of blank lines present before headline contents whereas its cdr reflects the number of blank lines after contents.

A nil value replicates the number of blank lines found in the original Org buffer at the same place.

Upvotes: 2

Related Questions