From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Janssen Subject: Re: Mismatch in url escaping between org and exported html Date: Mon, 10 Feb 2014 12:37:35 +0100 Message-ID: References: <87a9dz8bwg.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=14dae9399b131b04b104f20bc428 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCpBF-0001b1-FX for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 06:37:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCpBA-0003Ko-Ef for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 06:37:41 -0500 In-Reply-To: <87a9dz8bwg.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --14dae9399b131b04b104f20bc428 Content-Type: multipart/alternative; boundary=14dae9399b131b04ab04f20bc426 --14dae9399b131b04ab04f20bc426 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Feb 10, 2014 at 12:06 PM, Bastien wrote: > Hi Mark, > > Mark Janssen writes: > > > If I insert a http:// link containing question marks, the verbatim > > link being inserted in the org document has the question mark > > escaped. > > I can't reproduce this with latest stable or unstable Org version. > > I shouldn't have posted this to the mailing list at the time I did :(. Apologies for any confusion I have caused. The problem is with escaping of an equals sign not the question mark. I have attached a demo org and a resulting html file. Note that in the html file, the url is http://test/test?name%3Dme which is wrong. It should be http://test/test?name=me Running C-c C-ehh on that org file gives the attached html. I have started emacs as: emacs.exe -Q -l minimal.el test.org ;;minimal.el (require 'package) (package-initialize) (require 'org) > What version of Org and Emacs are you using? > > (org-version) "8.2.5h" (emacs-version) "GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN" > Thanks, > > -- > Bastien > --14dae9399b131b04ab04f20bc426 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Mon, Feb 10, 2014 at 12:06 PM, Bastien <bzg@gnu.org> wr= ote:
Hi Mark,

Mark Janssen <mpc.janssen@gmail= .com> writes:

> If I insert a http:// link containing question marks, the verbatim
> link being inserted in the org document has the question mark
> escaped.

I can't reproduce this with latest stable or unstable Org version= .


I shouldn't have posted this to th= e mailing list at the time I did :(. Apologies for any confusion I have cau= sed.
=A0The problem is with escaping of an equals sign not the qu= estion mark.

I have attached a demo org and a resulting html file. N= ote that in the html file, the url is=A0http://test/test?name%3Dme which is wrong. It should be=A0http://test/test?name=3Dme

Running C-c C-ehh on that org file gives the attached h= tml. I have started emacs as:

emacs.exe -Q -l mini= mal.el test.org

;;minimal.el
(require 'package)
(package-initi= alize)
(require 'org)
=A0
What version of Org and Emacs are you using?


(org-version)
"8.2= .5h"

(emacs-version)
"GNU Emac= s 24.3.1 (i386-mingw-nt6.1.7601)
=A0of 2013-03-17 on MARVIN"=


=A0
Thanks,<= br>
--
=A0Bastien

--14dae9399b131b04ab04f20bc426-- --14dae9399b131b04b104f20bc428 Content-Type: text/html; charset=US-ASCII; name="test.html" Content-Disposition: attachment; filename="test.html" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hrhnzjwe1 PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBodG1sIFBV QkxJQyAiLS8vVzNDLy9EVEQgWEhUTUwgMS4wIFN0cmljdC8vRU4iDQoiaHR0cDovL3d3dy53My5v cmcvVFIveGh0bWwxL0RURC94aHRtbDEtc3RyaWN0LmR0ZCI+DQo8aHRtbCB4bWxucz0iaHR0cDov L3d3dy53My5vcmcvMTk5OS94aHRtbCIgbGFuZz0iZW4iIHhtbDpsYW5nPSJl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48YSBocmVmPSJodHRwOi8vd3d3LmdudS5vcmcvc29mdHdhcmUvZW1hY3Mv Ij5FbWFjczwvYT4gMjQuMy4xICg8YSBocmVmPSJodHRwOi8vb3JnbW9kZS5vcmciPk9yZzwvYT4g bW9kZSA4LjIuNWgpPC9wPg0KPHAgY2xhc3M9InZhbGlkYXRpb24iPjxhIGhyZWY9Imh0dHA6Ly92 YWxpZGF0b3IudzMub3JnL2NoZWNrP3VyaT1yZWZlcmVyIj5WYWxpZGF0ZTwvYT48L3A+DQo8L2Rp dj4NCjwvYm9keT4NCjwvaHRtbD4NCg== --14dae9399b131b04b104f20bc428 Content-Type: application/octet-stream; name="test.org" Content-Disposition: attachment; filename="test.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hrhnzd2s1 W1todHRwOi8vdGVzdC90ZXN0P25hbWUlM0RtZV1bbWVdXQ0K --14dae9399b131b04b104f20bc428 Content-Type: application/octet-stream; name="minimal.el" Content-Disposition: attachment; filename="minimal.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hrhnzot52 KHJlcXVpcmUgJ3BhY2thZ2UpDQoocGFja2FnZS1pbml0aWFsaXplKQ0KKHJlcXVpcmUgJ29yZykN CihyZXF1aXJlICdveC1odG1sKQ0K --14dae9399b131b04b104f20bc428--