Fix headline insertion after an empty headline
commit3f484a52775c8873a3b1b44e8264e01369850a8a
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 19 Sep 2014 18:55:50 +0000 (19 20:55 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 19 Sep 2014 18:59:40 +0000 (19 20:59 +0200)
tree2192e193b4a31588185a4ecf8f464a98eb8266d8
parent98afe0046f5fa383b65ffd5ae6847ace68142dc8
Fix headline insertion after an empty headline

* lisp/org.el (org-N-empty-lines-before-current): Make sure to delete
  only empty lines, not trailing whitespaces.

* testing/lisp/test-org.el (test-org/insert-heading): Add test.

Thanks to Oleh for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90876
lisp/org.el
testing/lisp/test-org.el