emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Insert ampersand in HTML export?


From: Nick Dokos
Subject: Re: [Orgmode] Insert ampersand in HTML export?
Date: Thu, 17 Feb 2011 16:57:42 -0500

Uriel Avalos <address@hidden> wrote:

> On Thu, 17 Feb 2011 04:24:58 +0100
> Bastien <address@hidden> wrote:
> 
> > Hi uriel,
> > 
> > Uriel Avalos <address@hidden> writes:
> > 
> > > #+BIND: org-export-html-protect-char-alist '("&" . "&")
> > >
> > > That's telling me I'm using the "wrong type argument: listp, quote"
> > 
> > It must be this:
> > 
> > #+BIND: org-export-html-protect-char-alist '(("&" . "&"))
> > 
> > The "-alist" suffix means it should be an alist -- see the Info node for
> > Association lists in the Elisp manual.
> > 
> > -- 
> >  Bastien
> > 
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> Nope. It still doesn't work. This is my test file:
> 
>    #+BIND: org-export-html-protect-char-alist '(("&" . "&"))
>    #+MACRO test & should stay as is
> 
>    Hello world & 
> 
> I get the same error when I try to export: "wrong type argument: listp, quote"
> 

[Sent a terser reply earlier, but it never made it to the list: mail
problem on my end.]

Lose the quote (that will cure the emacs error) and add a header: the
<title> element in HTML still gets the &amp; treatment:


--8<---------------cut here---------------start------------->8---
#+BIND: org-export-html-protect-char-alist (("&" . "&"))
#+MACRO test & should stay as is

* foo & bar
Hello world & 
--8<---------------cut here---------------end--------------->8---

Nick





reply via email to

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