emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Invalid HTML with email:t export option [7.5 (release_7.5.27.gefa56)]
@ 2011-03-11 19:29 Bernt Hansen
  2011-03-12  4:23 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Bernt Hansen @ 2011-03-11 19:29 UTC (permalink / raw)
  To: emacs-orgmode

Hi Bastien,

The following org file generates invalid HTML.  The class name includes
the full email address and '@' is not an allowed character in the HTML
class name.

Here's an org file for testing
--8<---------------cut here---------------start------------->8---
#+OPTIONS:   email:t
* Test file
This is a test
--8<---------------cut here---------------end--------------->8---

If you export this with C-c C-e H you get invalid HTML.

This was caused by commit 

--8<---------------cut here---------------start------------->8---
commit 595379852221002726a1a1dc03ee4aebdd677423
Author: Bastien Guerry <bzg@altern.org>
Date:   Fri Mar 4 16:32:10 2011 +0100

    Clean handling :html-pre/postamble options wrt author/email/creator-info.
    
    * org-html.el (org-export-html-preamble)
    (org-export-html-postamble): now default to `nil'.
    (org-export-as-html): when :html-pre/postamble is nil, fall
    back on the default pre/postamble, which depends on the
    :author-info, :email-info, :creator-info options.
    
    * org-exp.el (org-export-plist-vars): reorder the alist.
    
    * org.texi (Export options): better document :html-preamble
    and :html-postamble: setting these options will override any
    :author-info, :email-info and :creator-info options for the
    HTML export.

--8<---------------cut here---------------end--------------->8---

and the problem is line 1708 in org-html.el
Maybe change @ to -at- in the classname or remove the email value
entirely?

I'm not sure what the intention was for including the email value in the
class name for this.

Regards,
Bernt


Emacs  : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-12-11 on raven, modified by Debian
Package: Org-mode version 7.5 (release_7.5.27.gefa56)
-- 
Bernt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-12  4:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 19:29 Bug: Invalid HTML with email:t export option [7.5 (release_7.5.27.gefa56)] Bernt Hansen
2011-03-12  4:23 ` Bastien

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).