emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Table (with timestamps) HTML export bug


From: Charles Sebold
Subject: [Orgmode] Re: Table (with timestamps) HTML export bug
Date: Mon, 03 Nov 2008 10:37:37 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt)

On 3 Nov 2008, Charles Sebold wrote:

>> I noticed a bug that seems to have crept in over the weekend, but I
>> can't quite make out where it came from.
>
> It was somewhere in the last commit, but I can't quite wrap my head
> around the changes enough to figure out how this would break it.
>
> [15b4ae903879407efe33a9f26b6c7704f260bb6c] Process link descriptions
> in HTML export like any content.

I doubt this is right, but it works.  What does it takes to make this
right?

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 453cd1f..b61f8a9 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -3964,7 +3964,9 @@ If there are links in the string, don't modify these."
   (setq s (org-html-protect s))
   (if org-export-html-expand
       (let ((start 0))
-       (while (string-match "@<\\([^&]*\\)>" s)
+        (while (string-match "@<\\(.*?\\)"\\(.*?\\)>" s)
+          (setq s (replace-match "@<\\1\"\\2>" t nil s)))
+       (while (string-match "@<\\(.*?\\)>" s)
          (setq s (replace-match "<\\1>" t nil s)))))
   (if org-export-with-emphasize
       (setq s (org-export-html-convert-emphasize s)))

-- 
Charles Sebold                                     3rd of November, 2008
 GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) | Gnus v5.11 | org-mode 6.10c
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]