emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Subject: Bug: Invalid HTML with email:t export option [7.5 (release_7.5.27.gefa56)]
Date: Fri, 11 Mar 2011 14:29:56 -0500	[thread overview]
Message-ID: <87r5ad8ngr.fsf@norang.ca> (raw)

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

             reply	other threads:[~2011-03-11 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 19:29 Bernt Hansen [this message]
2011-03-12  4:23 ` Bug: Invalid HTML with email:t export option [7.5 (release_7.5.27.gefa56)] Bastien

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=87r5ad8ngr.fsf@norang.ca \
    --to=bernt@norang.ca \
    --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).