From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre =?iso-8859-1?q?T=E9choueyres?= Subject: [PATCH] Properly export title tag in org-html Date: Tue, 15 Feb 2011 22:38:19 +0100 Message-ID: <201102152238.20401.Pierre.Techoueyres@free.fr> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_MJvWNNCgNi7hiRO" Return-path: Received: from [140.186.70.92] (port=46494 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpSbP-0002D2-2N for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 16:38:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpSbM-0004UR-P4 for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 16:38:29 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]:57457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpSbM-0004TZ-4L for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 16:38:28 -0500 Received: from killashandra.asgard.fr (unknown [82.225.78.171]) by smtp5-g21.free.fr (Postfix) with ESMTP id 055F1D4813D for ; Tue, 15 Feb 2011 22:38:21 +0100 (CET) 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 --Boundary-00=_MJvWNNCgNi7hiRO Content-Type: multipart/alternative; boundary="Boundary-01=_MJvWNngi9jM+Hg4" Content-Transfer-Encoding: 7bit --Boundary-01=_MJvWNngi9jM+Hg4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi List, I think I've found a little bug in org-export-as-html function in org- html.el file. If you're setting an title with some escape character then the title tag in html header is set "as is". for example if your title is foo\_bar then the title tag will be foo\_bar instead of foo_bar I tried to do the job in the attached patch. Hope this could help. Pierre --Boundary-01=_MJvWNngi9jM+Hg4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Hi List,

I think I've found a little bug in org-export-as-html function in org-html.el file.

If you're setting an title with some escape character then the title tag in html header is set "as is".

for example if your title is foo\_bar then the title tag will be <title>foo\_bar</title> instead of <title>foo_bar</title>

I tried to do the job in the attached patch.

Hope this could help.

Pierre

--Boundary-01=_MJvWNngi9jM+Hg4-- --Boundary-00=_MJvWNNCgNi7hiRO Content-Type: text/x-patch; charset="UTF-8"; name="org-html.el.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="org-html.el.diff" diff --git a/lisp/org-html.el b/lisp/org-html.el index 9135c73..016a181 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1257,7 +1257,7 @@ lang=\"%s\" xml:lang=\"%s\"> "") (or charset "iso-8859-1")) language language - title + (org-html-expand title) (or charset "iso-8859-1") date author description keywords style --Boundary-00=_MJvWNNCgNi7hiRO Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Boundary-00=_MJvWNNCgNi7hiRO--