emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Pierre Téchoueyres" <Pierre.Techoueyres@free.fr>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Properly export title tag in org-html
Date: Tue, 15 Feb 2011 22:38:19 +0100	[thread overview]
Message-ID: <201102152238.20401.Pierre.Techoueyres@free.fr> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 406 bytes --]

	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

[-- Attachment #1.2: Type: text/html, Size: 2577 bytes --]

[-- Attachment #2: org-html.el.diff --]
[-- Type: text/x-patch, Size: 358 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

             reply	other threads:[~2011-02-15 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 21:38 Pierre Téchoueyres [this message]
2011-02-16 10:54 ` [PATCH] Properly export title tag in org-html 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=201102152238.20401.Pierre.Techoueyres@free.fr \
    --to=pierre.techoueyres@free.fr \
    --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).