emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] [BUG] Timestamps surrounded by @@ in HTML export
@ 2011-02-01 15:37 Jason Dunsmore
  2011-02-01 16:48 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Jason Dunsmore @ 2011-02-01 15:37 UTC (permalink / raw)
  To: Org-mode mailing list

I noticed in the latest Git version that each inactive timestamp has
"@@" before and after it in HTML exported output.  Here is a patch that
fixes it.

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 6c0e5e3..2f0377b 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -2124,14 +2124,14 @@ But it has the disadvantage, that Org-mode's HTML conver
        (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)

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-02 17:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-01 15:37 [PATCH] [BUG] Timestamps surrounded by @@ in HTML export Jason Dunsmore
2011-02-01 16:48 ` Bastien
2011-02-01 18:50   ` Puneeth Chaganti
2011-02-02  9:48     ` Bastien
2011-02-02  9:55       ` Puneeth Chaganti
2011-02-02 10:12         ` Bastien
2011-02-02 17:44           ` Puneeth Chaganti

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).