From: Nick Dokos <nicholas.dokos@hp.com>
To: Ivan Vilata i Balaguer <ivan@selidor.net>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Re: [BUG] OrgTbl exports raw ampersands in HTML
Date: Wed, 13 Oct 2010 16:52:02 -0400 [thread overview]
Message-ID: <11759.1287003122@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Ivan Vilata i Balaguer <ivan@selidor.net> of "Wed, 13 Oct 2010 22:23:11 +0200." <87r5fton9s.fsf@rampella.terramar.selidor.net>
Ivan Vilata i Balaguer <ivan@selidor.net> 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<----
> <html>
> <body>
> <!-- [CDATA[
> #+ORGTBL: SEND test orgtbl-to-html
> | foo&bar |
> ]] -->
> <!-- BEGIN RECEIVE ORGTBL test -->
> <!-- END RECEIVE ORGTBL test -->
> </body>
> </html>
> ----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
next prev parent reply other threads:[~2010-10-13 20:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-13 16:06 [BUG] OrgTbl exports raw ampersands in HTML Ivan Vilata i Balaguer
2010-10-13 16:37 ` Nick Dokos
2010-10-13 17:59 ` Ivan Vilata i Balaguer
2010-10-13 19:10 ` Nick Dokos
2010-10-13 20:23 ` Ivan Vilata i Balaguer
2010-10-13 20:52 ` Nick Dokos [this message]
2010-10-15 6:24 ` Carsten Dominik
2010-10-15 12:22 ` Nick Dokos
2010-10-15 12:31 ` Ivan Vilata i Balaguer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11759.1287003122@alphaville.usa.hp.com \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=ivan@selidor.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.