0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:37:52 +00:00

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

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))