Skip to main content
2 of 2
added 93 characters in body
mxnt
  • 706
  • 8

Do a C-c C-c of the elisp code below ...

#+begin_src emacs-lisp :exports results :results none
  (add-hook 'org-export-before-parsing-hook
        (defun my-flush-headlines (backend)
          (cl-case backend
        (odt
         (org-with-wide-buffer
          ;; Flush headlines
          (flush-lines (rx (and bol (one-or-more "*") space (one-or-more any) eol))
                   (point-min) (point-max))))
        (otherwise
         ))))

  ;; (remove-hook 'org-export-before-parsing-hook-hook
  ;;         'my-flush-headlines)

#+end_src

* Non non deserunt consectetur amet, ullamco

Enim  non  voluptate  mollit  ea  laboris et  ex  nostrud  qui  labore
cupidatat. Do nisi ea quis et deserunt minim velit ut.

** Excepteur duis eiusmod reprehenderit et reprehenderit

Dolor elit, culpa aliqua enim culpa duis sit nostrud veniam, sint esse
sed id excepteur aute velit velit fugiat dolor.

* Sint eu magna aliqua enim

Occaecat  cupidatat  occaecat  excepteur  sed tempor  dolore  eu  quis
consectetur eu nulla labore proident, enim culpa.

** Fugiat fugiat consectetur fugiat fugiat

Irure  velit pariatur  nulla commodo  anim elit,  ea mollit  sit amet,
commodo et tempor ex commodo adipiscing id.
mxnt
  • 706
  • 8