summaryrefslogtreecommitdiff
path: root/lisp/ox-html.el
diff options
context:
space:
mode:
authorSébastien Delafond <sdelafond@gmail.com>2016-03-16 09:54:04 +0100
committerSébastien Delafond <sdelafond@gmail.com>2016-03-16 09:54:04 +0100
commit84539dca3aa301ecfe48858eceef1ced0505388b (patch)
treea3c7c7bcc50e7d7a49b22f0eaf8bd8624ff8d048 /lisp/ox-html.el
parent8d8ea67656b95d8528b6cd9b43b2d53b847412b0 (diff)
Imported Upstream version 8.3.4
Diffstat (limited to 'lisp/ox-html.el')
-rw-r--r--lisp/ox-html.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index a2db938..de2e5d9 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -1,6 +1,6 @@
;;; ox-html.el --- HTML Back-End for Org Export Engine
-;; Copyright (C) 2011-2015 Free Software Foundation, Inc.
+;; Copyright (C) 2011-2016 Free Software Foundation, Inc.
;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Jambunathan K <kjambunathan at gmail dot com>
@@ -1978,7 +1978,7 @@ INFO is a plist used as a communication channel."
(when todo
(format "<span class=\"%s %s%s\">%s</span>"
(if (member todo org-done-keywords) "done" "todo")
- (plist-get info :html-todo-kwd-class-prefix)
+ (or (plist-get info :html-todo-kwd-class-prefix) "")
(org-html-fix-class-name todo)
todo)))
@@ -2047,7 +2047,7 @@ is the language used for CODE, as a string, or nil."
(funcall lang-mode)
(insert code)
;; Fontify buffer.
- (font-lock-ensure)
+ (org-font-lock-ensure)
;; Remove formatting on newline characters.
(save-excursion
(let ((beg (point-min))
@@ -2963,10 +2963,8 @@ INFO is a plist holding contextual information. See
attributes
desc))
;; External link without a description part.
- (path (format "<a href=\"%s\"%s>%s</a>"
- (org-html-encode-plain-text path)
- attributes
- path))
+ (path (let ((path (org-html-encode-plain-text path)))
+ (format "<a href=\"%s\"%s>%s</a>" path attributes path)))
;; No path, only description. Try to do something useful.
(t (format "<i>%s</i>" desc)))))
@@ -3406,7 +3404,7 @@ contextual information."
(when (org-export-table-cell-starts-colgroup-p
table-cell info)
"\n<colgroup>")
- ;; Add a column. Also specify it's alignment.
+ ;; Add a column. Also specify its alignment.
(format "\n%s"
(org-html-close-tag
"col" (concat " " (format alignspec alignment)) info))