emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Uriel Avalos <amscopub-mail@yahoo.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org,
	Bastien <bastien.guerry@wikimedia.fr>
Subject: Re: Insert ampersand in HTML export?
Date: Thu, 17 Feb 2011 16:57:42 -0500	[thread overview]
Message-ID: <4079.1297979862@alphaville> (raw)
In-Reply-To: Message from Uriel Avalos <amscopub-mail@yahoo.com> of "Thu, 17 Feb 2011 13:41:38 EST." <20110217134138.059f9051amscopub-mail@yahoo.com@dove.localdomain>

Uriel Avalos <amscopub-mail@yahoo.com> wrote:

> On Thu, 17 Feb 2011 04:24:58 +0100
> Bastien <bastien.guerry@wikimedia.fr> wrote:
> 
> > Hi uriel,
> > 
> > Uriel Avalos <uriavalos@yahoo.com> 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.
> > Emacs-orgmode@gnu.org
> > 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

  parent reply	other threads:[~2011-02-17 21:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20110210152542.26383056amscopub-mail@yahoo.com@dove.localdomain>
2011-02-11  8:34 ` Insert ampersand in HTML export? Carsten Dominik
2011-02-11 16:48   ` Uriel Avalos
     [not found]   ` <20110211114831.2a53a9ffamscopub-mail@yahoo.com@dove.localdomain>
2011-02-12 11:51     ` Bastien
2011-02-12 14:08       ` Carsten Dominik
2011-02-12 15:24         ` Bastien
2011-02-12 20:51           ` Uriel Avalos
     [not found]           ` <20110212155103.16e82a76uriavalos@yahoo.com@dove.localdomain>
2011-02-13  9:10             ` Bastien
2011-02-13 18:53               ` Uriel Avalos
     [not found]               ` <20110213135347.58c0c882uriavalos@yahoo.com@dove.localdomain>
2011-02-14  0:04                 ` Bastien
2011-02-17  2:50                   ` Uriel Avalos
     [not found]                   ` <20110216215007.51a0a126uriavalos@yahoo.com@dove.localdomain>
2011-02-17  3:24                     ` Bastien
2011-02-17 18:41                       ` Uriel Avalos
     [not found]                       ` <20110217134138.059f9051amscopub-mail@yahoo.com@dove.localdomain>
2011-02-17 21:57                         ` Nick Dokos [this message]
2011-02-18  9:04                           ` Bastien
2011-02-22 16:21                             ` Uriel Avalos
2011-02-22 16:28                             ` Uriel Avalos
2011-02-12 14:13     ` Carsten Dominik
2011-02-10 20:25 Uriel Avalos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4079.1297979862@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=amscopub-mail@yahoo.com \
    --cc=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).