From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen 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 Message-ID: <87r5ad8ngr.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33158 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Py82T-0005T7-Uq for emacs-orgmode@gnu.org; Fri, 11 Mar 2011 14:30:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Py82I-0006KE-GI for emacs-orgmode@gnu.org; Fri, 11 Mar 2011 14:30:07 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:33824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Py82I-0006Gu-BN for emacs-orgmode@gnu.org; Fri, 11 Mar 2011 14:30:06 -0500 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Py82B-000ILX-0U for emacs-orgmode@gnu.org; Fri, 11 Mar 2011 19:29:59 +0000 Received: from localhost.localdomain (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2BJTvVJ013514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 11 Mar 2011 14:29:58 -0500 Received: from localhost.localdomain (gollum [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id p2BJTv0b027323 for ; Fri, 11 Mar 2011 14:29:57 -0500 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: emacs-orgmode@gnu.org 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 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