org-element: Fix indentation removal with line breaks
commitbf4a645cacc26377b2847d7d2090a00017f6f114
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 7 Mar 2015 00:52:58 +0000 (7 01:52 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 7 Mar 2015 00:58:28 +0000 (7 01:58 +0100)
treebddc0e753c990bd544446b72ce05746a0c78664b
parentd4c19a1c854919630da78544cf2de04572bf38a6
org-element: Fix indentation removal with line breaks

* lisp/org-element.el (org-element-line-break-parser): Tiny
  refactoring.
(org-element-normalize-contents): Take into consideration line breaks
when removing common indentation.  Small refactoring.

* testing/lisp/test-org-element.el (test-org-element/normalize-contents):
  Add tests.
lisp/org-element.el
testing/lisp/test-org-element.el