Fix links with newline characters
commitf63d76872c77b410f3c28afce5a2919dee2f9242
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 4 Aug 2015 14:40:25 +0000 (4 16:40 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 4 Aug 2015 14:40:25 +0000 (4 16:40 +0200)
tree4ee8000bcc4a0aecb3204fa6d85826762b500682
parent02532389f498da7bdf09020dc0b3a9dca1920d8e
Fix links with newline characters

* lisp/org-element.el (org-element-link-parser): Correctly parse links
  with newline characters.

* lisp/org.el (org-make-link-regexps): Allow newline characters within
  angle links.
(org-activate-angle-links): Support multiline angle links.

* testing/lisp/test-org-element.el (test-org-element/link-parser):
  Update tests.

As a rule of thumb, any newline character and all surrounding
whitespaces are treated as a single space in a bracket link.  They are
removed in angle links.
lisp/org-element.el
lisp/org.el
testing/lisp/test-org-element.el