Handle timestamps after handling links

* org-html.el (org-export-as-html): Handle timestamps after handling
links.

otherwise a link description with an ISO date is handled as an
inactive timestamp and replaced by a timestamp span.

Bug reported by Vincent Belaïche.
This commit is contained in:
David Maus 2011-01-14 06:37:52 +01:00
parent b41a340e9e
commit 163cd58ffd
1 changed files with 2 additions and 2 deletions

View File

@ -1308,8 +1308,6 @@ lang=\"%s\" xml:lang=\"%s\">
"@</a> ")
t t line)))))
(setq line (org-html-handle-time-stamps line))
;; replace "&" by "&amp;", "<" and ">" by "&lt;" and "&gt;"
;; handle @<..> HTML tags (replace "@&gt;..&lt;" by "<..>")
;; Also handle sub_superscripts and checkboxes
@ -1474,6 +1472,8 @@ lang=\"%s\" xml:lang=\"%s\">
(setq line (replace-match rpl t t line)
start (+ start (length rpl))))
(setq line (org-html-handle-time-stamps line))
;; TODO items
(if (and (string-match org-todo-line-regexp line)
(match-beginning 2))