From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [BUG] OrgTbl exports raw ampersands in HTML Date: Wed, 13 Oct 2010 12:37:11 -0400 Message-ID: <21328.1286987831@gamaville.dokosmarshall.org> References: <878w22oz5l.fsf@rampella.terramar.selidor.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=55771 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P64MD-0001di-RE for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 12:39:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P64Ka-0003ZL-VF for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 12:37:33 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:60828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P64Ka-0003ZC-Rx for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 12:37:32 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LA800F91M5ZSJ70@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 11:37:12 -0500 (CDT) In-reply-to: Message from Ivan Vilata i Balaguer of "Wed, 13 Oct 2010 18:06:30 +0200." <878w22oz5l.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: > (This is a rewrite of my previous post so it gets properly noticed as a > bug. ;) ) > > When generating HTML tables with ampersands in the text, OrgTbl outputs > raw ampersands (&) instead of escaped ampersands (&), which renders > the file invalid. This bug does not affect normal HTML generation when > exporting standalone files. I'm using Org version 7.01h. I've attached > a sample HTML file with an OrgTbl table in it so you can check for > yourselves. Thanks! > I confess I looked at your original report, was baffled by it, started composing a reply but was distracted before sending it. AFAIK, orgtbl-mode is a minor mode so that you can use org's table generation facilities in other modes (e.g. text, or including a table in a comment in a C/python/perl/foo source file, or in mail...) In particular, it does not generate HTML. That is done by org's export facilities. So either your description is inaccurate or my understanding is flawed. Given the absence of responses, I suspect other people share my bafflement. It would help if you described the process you used exactly: o I started with a file in foo major mode with these contents... o I enabled orgtbl-mode and added a table like this... o Then I did this-that-and-the-other to generate an HTML file which looks like this... Thanks, Nick