org: Change structure insertion
commitd04c20deece7b1d0eb40f7b8365a87484f26db6a
authorRasmus <rasmus@gmx.us>
Thu, 21 Dec 2017 13:37:06 +0000 (21 14:37 +0100)
committerRasmus <rasmus@gmx.us>
Sun, 8 Apr 2018 10:47:12 +0000 (8 12:47 +0200)
treee941857a082489329f7a7676eaa4cb0a99698604
parente5f6cb6c8b6c26772a92410a657b6986842dd23e
org: Change structure insertion

* lisp/org.el (org-insert-structure-template): Change newline
  behavior.
* testing/lisp/test-org.el (test-org/insert-template): New tests.

`org-insert-structure-template' considers indentation and also insert
newlines between the beginning and the end of the block.
lisp/org.el
testing/lisp/test-org.el