ox: Do not trim leading and trailing blank lines from code
commit1332bbd6165b36860013c98483ecd1f8cb4c310d
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 29 Apr 2017 12:32:29 +0000 (29 14:32 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 29 Apr 2017 12:32:29 +0000 (29 14:32 +0200)
tree6d075550cd02040755ea85d5120e1f8860717a36
parent91236a3db3d99cbb4c011726929106fd2689c36d
ox: Do not trim leading and trailing blank lines from code

* lisp/ox.el (org-export-get-loc):
(org-export-unravel-code):
(org-export-format-code):
(org-export-format-code-default): Do not trim leading and trailing
blank lines from code during export.

* testing/lisp/test-ox.el (test-org-export/unravel-code): Update tests.
(test-org-export/format-code-default): Add tests.

Reported-by: Li DebugFan <debugfanli@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/113205>
lisp/ox.el
testing/lisp/test-ox.el