ox-extra: Merge sections from ignored headlines
commitfef346798f9230644d389e21d33990bfac65e884
authorKyle Meyer <kyle@kyleam.com>
Sat, 29 Apr 2017 16:58:49 +0000 (29 12:58 -0400)
committerKyle Meyer <kyle@kyleam.com>
Thu, 4 May 2017 03:35:40 +0000 (3 23:35 -0400)
tree07c73eb83e885197cb666522271b752626b2fb6b
parentfa1c6e92ac0f3c8c37c2d2d7e11073ccce550156
ox-extra: Merge sections from ignored headlines

* contrib/lisp/ox-extra.el (org-extra--merge-sections): New function.
(org-export-ignore-headlines): Merge multiple sections that result
from removing ignored headlines.

Prevent org-export-ignore-headlines from violating the one headline to
one section mapping that is relied on by at least one export backend,
ox-texinfo.  (ox-texinfo uses each section to generate the menu.)
contrib/lisp/ox-extra.el