From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: [BUG] OrgTbl exports raw ampersands in HTML Date: Wed, 13 Oct 2010 16:52:02 -0400 Message-ID: <11759.1287003122@alphaville.usa.hp.com> References: <878w22oz5l.fsf@rampella.terramar.selidor.net> <21328.1286987831@gamaville.dokosmarshall.org> <87zkuinfcg.fsf@rampella.terramar.selidor.net> <8790.1286997033@alphaville.usa.hp.com> <87r5fton9s.fsf@rampella.terramar.selidor.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=39053 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P68Iv-0000Ku-P4 for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 16:52:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P68Iu-0002Fo-CM for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 16:52:05 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:27316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P68Iu-0002Fh-7L for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 16:52:04 -0400 In-Reply-To: Message from Ivan Vilata i Balaguer of "Wed, 13 Oct 2010 22:23:11 +0200." <87r5fton9s.fsf@rampella.terramar.selidor.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ivan Vilata i Balaguer Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Ivan Vilata i Balaguer wrote: > Nick Dokos (2010-10-13 21:10:33 +0200) wrote: > > > Yes, thanks. I'll try it out later. FWIW, my mail reader does not see > > an attachment in your message: all I get is the following attachmen > > with an external body. Not sure whose fault that is though: maybe mh-e > > gets hopelessly confused with it. Can you post the HTML file inline? > > Argh, I made an external attachment, sorry. Here you have the file: > > ----8<---- > > > > > > > > ----8<---- > The following patch should fix it: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/org-html.el b/lisp/org-html.el index 3fd7b72..f7824ce 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1885,7 +1885,7 @@ lang=\"%s\" xml:lang=\"%s\"> ;; ignore this line (throw 'next-line t))) ;; Break the line into fields - (setq fields (org-split-string line "[ \t]*|[ \t]*")) + (setq fields (mapcar (function org-html-expand) (org-split-string line "[ \t]*|[ \t]*"))) (unless fnum (setq fnum (make-vector (length fields) 0) nfields (length fnum))) (setq nline (1+ nline) i -1 --8<---------------cut here---------------end--------------->8--- HTH, Nick