diff options
author | Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> | 2011-03-10 17:07:12 +0000 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2011-05-27 22:51:32 +0200 |
commit | f72541f824f26931dcd5541772a37b2c3278ae40 (patch) | |
tree | df7188f29fda9c5d5367b0b859628a9bd9f40f14 | |
parent | bc161ded3693f752616dcd247fc9d638789025ee (diff) | |
download | org-mode-f72541f824f26931dcd5541772a37b2c3278ae40.tar.gz |
HTML export -- Allow to change the name of the global DIV
Hello,
Here is a patch which allows one to change the (currently) hard-coded DIV name
in which the page contents is being inserted.
It currently is "content", but some prefer "container" or "wrapper".
If accepted, my next patch will be to make this a per-project variable.
Best regards,
Seb
-rw-r--r-- | lisp/org-html.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/org-html.el b/lisp/org-html.el index 29bb825..afc6a77 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1,6 +1,6 @@ ;;; org-html.el --- HTML export for Org-mode -;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 ;; Free Software Foundation, Inc. ;; Author: Carsten Dominik <carsten at orgmode dot org> @@ -605,6 +605,11 @@ with a link to this URL." (const :tag "Keep internal css" nil) (string :tag "URL or local href"))) +(defcustom org-export-content-div "content" + "The name of the container DIV that holds all the page contents." + :group 'org-export-htmlize + :type 'string) + ;;; Hooks (defvar org-export-html-after-blockquotes-hook nil @@ -1278,7 +1283,7 @@ lang=\"%s\" xml:lang=\"%s\"> %s </head> <body> -<div id=\"content\"> +<div id=\"%s\"> %s " (format @@ -1295,6 +1300,7 @@ lang=\"%s\" xml:lang=\"%s\"> date author description keywords style mathjax + org-export-content-div (if (or link-up link-home) (concat (format org-export-html-home/up-format |