From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [Patch] HTML export -- Allow to change the name of the global DIV Date: Thu, 10 Mar 2011 14:07:12 +0100 Message-ID: <80y64nxgxr.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org --=-=-= 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=add-variable-for-container-div.patch diff --git a/lisp/org-html.el b/lisp/org-html.el index c60c90d..772e9d0 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 @@ -583,6 +583,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 @@ -1251,7 +1256,7 @@ lang=\"%s\" xml:lang=\"%s\"> %s -
+
%s " (format @@ -1268,6 +1273,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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Best regards, Seb --=20 S=C3=A9bastien Vauban --=-=-=--