contrib/lisp/org-e-texinfo: Remove markup from headlines when
commit8441782b11321469c944267775cc631242c2e45d
authorJonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Thu, 23 Aug 2012 13:20:02 +0000 (23 09:20 -0400)
committerJonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Thu, 23 Aug 2012 13:20:02 +0000 (23 09:20 -0400)
tree4fa18952bde440731974b1d7cf34cc0814b4f337
parent44d68803d31fa2ea577030fdf86d274a38bbaf71
contrib/lisp/org-e-texinfo: Remove markup from headlines when
exporting to ensure info can process them properly

* contrib/lisp/org-e-texinfo.el (org-e-texinfo--generate-menu-items):
  Use org-e-texinfo--sanitize-headline to ensure markup is stripped
  before being used for sectioning and menu information.  Nodes and
  menus can fail because of formatting and section titles do not show
  any formatting when viewed in an info-viewer.
(org-e-texinfo--sanitize-headline): Wrapper function for
org-e-texinfo--sanitize-healine-contents
(org-e-texinfo--sanitize-headline-contents): Strips markup from
headlines.  It treats content recursively to ensure nested formatting
is removed as well.
contrib/lisp/org-e-texinfo.el