emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [RFC] Simplify attributes syntax


From: Nicolas Goaziou
Subject: Re: [O] [RFC] Simplify attributes syntax
Date: Mon, 11 Mar 2013 08:40:34 +0100

Follow up:

> The following patch simplifies syntax for attributes.
>
> From the user POV, it removes necessity to quote or escape characters.
> For example, these are now valid:
>
>   #+attr_latex: :font \footnotesize :align |l|c|c|
>   #+attr_foo: :prop var="value" :another-prop nil
>
> From the developer POV, each non-nil value is now read as a string by
> `org-export-read-attribute'.  So:
>
>   #+attr_something: :width 70
>
> will be read as:
>
>   '(:width "70")

This patch is now applied in master. Please modify syntax for attributes
accordingly.

In particular, double quotes are not needed anymore for multiple words,
unless you really want them to appear in the value:

  #+attr_something: :prop this is a long value :prop2 value


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]