Make cloning entries work at the end of the buffer
commiteea7bf8d3fbecd05228991c0835b9b6477130275
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 12 Nov 2009 23:28:15 +0000 (13 00:28 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 12 Nov 2009 23:28:15 +0000 (13 00:28 +0100)
treea39990bfc413c0231907cec81fe5583f064ebdc7
parent0f826be93115a3e4f74d958a849b491bfd1b0066
Make cloning entries work at the end of the buffer

David Maus writes:

> By accident I noticed that if you clone a subtree using C-c C-x c who
> or whose content is the last line of the file orgmode inserts the
> clone without the desired newline.
>
> example.org
> ,----
> | * Just a test
> `----
>
> If you move the point behind test and press C-c C-x c 1 <RET> <RET>
> the clone is inserted right behind "test".
>
> example.org
> ,----
> | * Just a test*Just a test
> `----
>
> Instead orgmode should insert a newline before inserting the clone
> when the file misses an empty line at the end.
lisp/ChangeLog
lisp/org.el