浏览代码

Docfix: explain how to escape the in *-html-(pre|post)amble-format.

* org-html.el (org-export-html-postamble-format)
(org-export-html-preamble-format): explain how to escape the
`%' character.
Bastien Guerry 14 年之前
父节点
当前提交
fe67a66e2f
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      lisp/org-html.el

+ 8 - 2
lisp/org-html.el

@@ -354,7 +354,10 @@ Setting :html-preamble in publishing projects will override this."
   '(("en" "<h1 class=\"title\">%t</h1>"))
   "The format for the HTML preamble.
 
-%t stands for the title."
+%t stands for the title.
+
+If you need to use a \"%\" character, you need to escape it
+like that: \"%%\"."
   :group 'org-export-html
   :type 'string)
 
@@ -377,7 +380,10 @@ Setting :html-postamble in publishing projects will override this."
 %e stands for the email(s).
 %d stands for the date.
 %c will be replaced by information about Org/Emacs.
-%v will be replaced by `org-export-html-validation-link'."
+%v will be replaced by `org-export-html-validation-link'.
+
+If you need to use a \"%\" character, you need to escape it
+like that: \"%%\"."
   :group 'org-export-html
   :type 'string)