HTML export: Add XML declaration

Patch by Sebastian Rose
This commit is contained in:
Carsten Dominik 2009-05-15 09:21:46 +02:00
parent e7e711148a
commit fbe4f09cd8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-05-15 Carsten Dominik <carsten.dominik@gmail.com>
* org-html.el (org-export-as-html): Add xml declaration.
2009-05-14 Carsten Dominik <carsten.dominik@gmail.com> 2009-05-14 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-after-sorting-entries-or-items-hook): New hook. * org.el (org-after-sorting-entries-or-items-hook): New hook.

View File

@ -669,7 +669,8 @@ PUB-DIR is set, use this as the publishing directory."
(unless body-only (unless body-only
;; File header ;; File header
(insert (format (insert (format
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" "<?xml version=\"1.0\" encoding=\"%s\"?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" <html xmlns=\"http://www.w3.org/1999/xhtml\"
lang=\"%s\" xml:lang=\"%s\"> lang=\"%s\" xml:lang=\"%s\">
@ -686,6 +687,7 @@ lang=\"%s\" xml:lang=\"%s\">
<body> <body>
<div id=\"content\"> <div id=\"content\">
" "
(or charset "iso-8859-1")
language language (org-html-expand title) language language (org-html-expand title)
(or charset "iso-8859-1") (or charset "iso-8859-1")
date author description keywords date author description keywords