ox: Fix comments removal
commit53a4209003642032cdc44daa46c38a73dc8202b0
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 12 Nov 2015 10:28:13 +0000 (12 11:28 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 12 Nov 2015 10:28:13 +0000 (12 11:28 +0100)
tree42bb055edd6aef202ef495c32b39b6155c4f1e8c
parent7bd20d0c6e905cb9a29b2c4301d6c319c85ff36e
ox: Fix comments removal

* lisp/ox.el (org-export--delete-comments): Preserve document's
  structure when removing comment lines or comment blocks.

* testing/lisp/test-ox.el (test-org-export/comments): New test.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/102860>
lisp/ox.el
testing/lisp/test-ox.el