org-element: Change to export-snippet syntax
commit803d76825acf5af6228178eef41d5e447b14997f
authorNicolas Goaziou <n.goaziou@gmail.com>
Mon, 30 Apr 2012 15:20:57 +0000 (30 17:20 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 30 Apr 2012 15:34:01 +0000 (30 17:34 +0200)
tree1b46405cbc46fea8f18a25579d9cbcc8deb93be8
parent237c65b1f70a6078b388d3bd6f0b2b447e28ad4d
org-element: Change to export-snippet syntax

* contrib/lisp/org-element.el (org-element-export-snippet-parser):
  Change syntax from @back-end{contents} to <back-end@contents>.
(org-element-export-snippet-successor): Use new syntax
* testing/lisp/test-org-element.el: Add test.

This change is required as curly braces conflict with LaTeX syntax
when trying to break a command in two parts.  On the other hand, HTML
tags can be broken easily in two.  More explicitely, both the
following constructs are possible now:

  <latex@\textsc{>Name<latex@}> and <html@<b>>
contrib/lisp/org-element.el
testing/lisp/test-org-element.el