ox: Simplify syntax for attributes
commit59cb22d63864a68c3ff47ca1ace6e02276f5b49c
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 8 Mar 2013 23:58:31 +0000 (9 00:58 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 11 Mar 2013 07:33:10 +0000 (11 08:33 +0100)
tree0a809c1b8550cf0bdde0843cd0712daff8c15e5a
parentcc756ecac98977abd2b63a39ccc93ff68358726c
ox: Simplify syntax for attributes

* lisp/ox.el (org-export-read-attribute): Do not use `read' to read
  attributes.  Instead, extract keywords and values from it, which
  means each value will be a string when non-nil.
* contrib/lisp/ox-groff.el (org-groff-link--inline-image): Use new
  attribute syntax.  Small refactoring.
* lisp/ox-ascii.el (org-ascii-horizontal-rule): Use new attribute
  syntax.
* lisp/ox-beamer.el (org-beamer-plain-list): Use new attribute syntax.
* lisp/ox-html.el (org-html--textarea-block): Use new attribute
  syntax.
* lisp/ox-latex.el (org-latex--inline-image, org-latex--org-table,
  org-latex--math-table): Use new attribute syntax.
* lisp/ox-man.el (org-man-table--org-table): Use new attribute syntax.
  Small refactoring.
* lisp/ox-odt.el (org-odt-link--inline-image, org-odt-table-cell): Use
  new attribute syntax.
* testing/lisp/test-ox.el: Add tests.

This patch introduces two changes.  To begin with, it removes the need
for quoting and escaping characters.  Also, all non-nil values are
stored as strings.  As an exception "nil" is stored as nil.
contrib/lisp/ox-groff.el
lisp/ox-ascii.el
lisp/ox-beamer.el
lisp/ox-html.el
lisp/ox-latex.el
lisp/ox-man.el
lisp/ox-odt.el
lisp/ox.el
testing/lisp/test-ox.el