From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Sebold Subject: Re: Table (with timestamps) HTML export bug Date: Mon, 03 Nov 2008 10:37:37 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kx2Rp-0004FJ-Pp for emacs-orgmode@gnu.org; Mon, 03 Nov 2008 11:38:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kx2Ri-0004Bi-Tu for emacs-orgmode@gnu.org; Mon, 03 Nov 2008 11:38:34 -0500 Received: from [199.232.76.173] (port=54772 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx2Rh-0004BD-Ui for emacs-orgmode@gnu.org; Mon, 03 Nov 2008 11:38:30 -0500 Received: from nf-out-0910.google.com ([64.233.182.186]:32642) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kx2Rg-0003Ly-2x for emacs-orgmode@gnu.org; Mon, 03 Nov 2008 11:38:28 -0500 Received: by nf-out-0910.google.com with SMTP id c7so1261356nfi.26 for ; Mon, 03 Nov 2008 08:37:41 -0800 (PST) In-Reply-To: (Charles Sebold's message of "Mon\, 03 Nov 2008 10\:16\:37 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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