org-mode/testing/lisp
Nicolas Goaziou 1332bbd616 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>
2017-04-29 14:32:29 +02:00
..
test-ob-C.el Babel C, C++, D support for non-homogeneous input tables 2014-06-08 19:20:16 -04:00
test-ob-R.el testing/lisp/test-ob-R.el: Initialize ESS vars for :session tests 2016-01-24 10:08:31 -08:00
test-ob-awk.el awk code blocks handle tabular input 2014-06-07 11:16:55 -04:00
test-ob-emacs-lisp.el Update copyright years 2017-01-05 20:19:37 -05:00
test-ob-exp.el ob-exp: Fix export of src blocks with pathological name 2017-03-18 10:28:15 +01:00
test-ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-header-arg-defaults.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00
test-ob-lilypond.el ob-lilypond: Fix failing tests 2015-11-08 17:31:34 +01:00
test-ob-lob.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-lua.el ob-lua.el: Update library for Org 9.0 2016-08-29 08:57:10 +02:00
test-ob-maxima.el test-ob-maxima: Revert last commit 2016-08-20 23:43:35 +02:00
test-ob-octave.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-perl.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-python.el Replace TBLNAME with NAME in tests 2016-02-10 15:40:11 +01:00
test-ob-ruby.el Replace `org-ctrl-c-ctrl-c' by `org-babel-execute-maybe' 2015-01-30 18:28:05 +01:00
test-ob-sed.el Org Babel now supports sed scripts 2015-05-30 14:59:01 +02:00
test-ob-shell.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-table.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-tangle.el ob-tangle: Fix last commit 2016-12-10 00:59:08 +01:00
test-ob.el Fix failing tests 2017-03-05 18:05:02 +01:00
test-org-agenda.el test-org-agenda: Test agenda buffername when reload sticky agenda 2017-03-21 20:42:08 +01:00
test-org-attach-annex.el Silence byte-compiler in "testing/" 2016-06-04 21:12:30 +02:00
test-org-capture.el org-capture: Fix escaping characters in template embedded S-exps 2017-03-14 09:03:59 +01:00
test-org-clock.el org-clock: Fix regression in Clock table 2017-02-13 21:28:59 +01:00
test-org-colview.el org-colview: Fix time sum when mixing duration and H:MM:SS time 2016-11-11 12:02:34 +01:00
test-org-datetree.el Fix failing test 2015-12-29 22:45:14 +01:00
test-org-element.el org-element: Fix radio link parser 2017-04-15 17:27:01 +02:00
test-org-feed.el org-feed: Fix failing test 2016-01-13 17:08:58 +01:00
test-org-footnote.el org-footnote: Handle un-referenced definitions 2016-02-27 16:05:35 +01:00
test-org-info.el org-info: Add tests 2017-01-21 13:56:58 +01:00
test-org-inlinetask.el test-org-inlinetask: Testing inlinetasks 2015-12-04 19:59:52 +01:00
test-org-lint.el org-lint: Add checker for empty headlines with tags 2017-02-17 13:23:26 +01:00
test-org-list.el test-org-list.el: Fix visibility tests 2017-03-07 16:37:25 +01:00
test-org-macro.el org-macro: Fix expansion in narrowed buffers 2016-01-29 00:52:49 +01:00
test-org-pcomplete.el Fix some tests 2017-02-13 17:21:24 +01:00
test-org-protocol.el org-protocol: Allow key=val&key2=val2-style URLs 2015-12-22 13:41:45 +01:00
test-org-src.el org-src: Fix indentation when tabs are involved 2017-04-29 11:45:45 +02:00
test-org-table.el org-table: Fix error with `org-table-get-field' at bob 2017-02-01 20:56:38 +01:00
test-org-timer.el org-timer.el: hh:mm:ss format for setting a timer 2015-06-02 23:18:13 +02:00
test-org.el Fix `org-forward-heading-same-level' 2017-04-15 16:51:33 +02:00
test-ox.el ox: Do not trim leading and trailing blank lines from code 2017-04-29 14:32:29 +02:00
test-property-inheritance.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00