emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Sebold <csebold@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Table (with timestamps) HTML export bug
Date: Mon, 03 Nov 2008 10:37:37 -0600	[thread overview]
Message-ID: <uljw03gvi.fsf@gmail.com> (raw)
In-Reply-To: <uprlc3hui.fsf@gmail.com> (Charles Sebold's message of "Mon\, 03 Nov 2008 10\:16\:37 -0600")

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 "@&lt;\\([^&]*\\)&gt;" s)
+        (while (string-match "@&lt;\\(.*?\\)&quot;\\(.*?\\)&gt;" s)
+          (setq s (replace-match "@&lt;\\1\"\\2&gt;" t nil s)))
+	(while (string-match "@&lt;\\(.*?\\)&gt;" 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	other threads:[~2008-11-03 16:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 15:41 Table (with timestamps) HTML export bug Charles Sebold
2008-11-03 16:16 ` Charles Sebold
2008-11-03 16:37   ` Charles Sebold [this message]
2008-11-03 20:10 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uljw03gvi.fsf@gmail.com \
    --to=csebold@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).