Improve spacing when inserting new headline after end of subtree
commit65b404427e1e49c251c45ab4f3587c5f97358436
authorCarsten Dominik <carsten.dominik@gmail.com>
Mon, 18 Feb 2013 08:28:05 +0000 (18 09:28 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Mon, 18 Feb 2013 08:28:05 +0000 (18 09:28 +0100)
treefb290c127b39f9651b48bc3a26ec6d917426b0c7
parent1f8c8dc6d6b0f6c9900be44519c00497f8ed89ff
Improve spacing when inserting new headline after end of subtree

When using C-RET to insert a new headline, the new headline was
inserted after arbitrary amounts of whitespace at the end of the
subtree.  This whitespace is now shrunk, to avoid unnatural spacing.

* lisp/org.el (org-insert-heading): Shrink whitespace at end of
  subtree when `org-insert-heading-respect-content' is on.
lisp/org.el