ob: Fix RESULTS indentation
commit6626dfb30bea8fa7bcb760f0265dc3c7422cc1e4
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 23 Aug 2015 21:38:36 +0000 (23 23:38 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 23 Aug 2015 21:41:56 +0000 (23 23:41 +0200)
tree101233052bfeb6d63ae65a3fb7abf0f661c30a47
parent9c5588377f2b954e389f0da70c1dcc5afffdb96a
ob: Fix RESULTS indentation

* lisp/ob-core.el (org-babel-parse-src-block-match): Compute indentation
  taking into consideration tab width.
(org-babel-where-is-src-block-result): Do not assume indentation
consists of white space characters only.

* testing/lisp/test-ob.el (test-ob/preserve-results-indentation): Add
  test.

Reported-by: Jarmo Hurri <jarmo.hurri@iki.fi>
<http://permalink.gmane.org/gmane.emacs.orgmode/100403>
lisp/ob-core.el
testing/lisp/test-ob.el