Fix bug when exporing inactive timestamps.

* org-html.el (org-html-handle-time-stamps): fix bug when
exporing inactive timestamps.
This commit is contained in:
Jason Dunsmore 2011-02-01 17:46:57 +01:00 committed by Bastien Guerry
parent 4cc1063dd2
commit ca69b55624
1 changed files with 4 additions and 4 deletions

View File

@ -2124,14 +2124,14 @@ But it has the disadvantage, that Org-mode's HTML conversions cannot be used."
(or b (setq b (substring s 0 (match-beginning 0))))
(setq r (concat
r (substring s 0 (match-beginning 0))
" @<span class=\"timestamp-wrapper\">"
" <span class=\"timestamp-wrapper\">"
(if (match-end 1)
(format "@<span class=\"timestamp-kwd\">%s @</span>"
(format "<span class=\"timestamp-kwd\">%s </span>"
(match-string 1 s)))
(format " @<span class=\"timestamp\">%s@</span>"
(format " <span class=\"timestamp\">%s</span>"
(substring
(org-translate-time (match-string 3 s)) 1 -1))
"@</span>")
"</span>")
s (substring s (match-end 0))))
;; Line break if line started and ended with time stamp stuff
(if (not r)