From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Arkell Subject: Underscores in HTML Exported URLs get backslashes added Date: Wed, 9 Feb 2011 11:58:57 -0500 Message-ID: <70EEB780-5CD2-4299-93E0-932951CF3B32@criticalmass.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=57456 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnDNr-0007wK-LG for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 11:59:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnDNq-00045T-1o for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 11:59:15 -0500 Received: from brewer.cmass.criticalmass.com ([207.61.21.2]:32436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnDNp-00040J-I7 for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 11:59:13 -0500 Content-Language: en-US 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 Hi list I am having a problem, and my google-fu is a little weak in finding the sol= ution. Whenever I do an HTML export of an org-page if a URL contains under= scores in it it will be exported escaped with a backslash in the text of th= e url. For instance if I have an org buffer: ** Some foo title for context this is an url: http://somefoo.com/this_is_broken Will get exported to:

Some foo title for context

this is an url: http://s= omefoo.com/this\_is\_broken

Does anyone have any idea what is going on? Thanks! __________________________________ Jonathan Arkell Tech Lead Inspired By Drum & Bass, Scheme, Kawaii p. 403.206.4377 402 -- 11th Ave SE Calgary, AB, Canada T2G 0Y4 jonathana@criticalmass.com criticalmass.com The information contained in this message is confidential. It is intended t= o be read only by the individual or entity named above or their designee. I= f the reader of this message is not the intended recipient, you are hereby = notified that any distribution of this message, in any form, is strictly pr= ohibited. If you have received this message in error, please immediately no= tify the sender and delete or destroy any copy of this message. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Underscores in HTML Exported URLs get backslashes added Date: Thu, 10 Feb 2011 04:26:59 -0500 Message-ID: <871v3gck9o.fsf@norang.ca> References: <70EEB780-5CD2-4299-93E0-932951CF3B32@criticalmass.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44138 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnSo0-0001C6-TL for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 04:27:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnSnu-0000Ib-5T for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 04:27:11 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:28256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnSnu-0000HR-3f for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 04:27:10 -0500 In-Reply-To: <70EEB780-5CD2-4299-93E0-932951CF3B32@criticalmass.com> (Jonathan Arkell's message of "Wed, 9 Feb 2011 11:58:57 -0500") 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: Jonathan Arkell Cc: emacs-orgmode Jonathan Arkell writes: > Hi list > > I am having a problem, and my google-fu is a little weak in finding the solution. Whenever I do an HTML export of an org-page if a URL contains underscores in it it will be exported escaped with a backslash in the text of the url. > > For instance if I have an org buffer: > > ** Some foo title for context > > this is an url: http://somefoo.com/this_is_broken > > > > Will get exported to: > >

Some foo title for context

>

this is an url: http://somefoo.com/this\_is\_broken

> > > Does anyone have any idea what is going on? Hi Jonathan, Just wrap the http:// ... in [[ ]] as in [[http://somefoo.com/this_is_broken]] Regards, Bernt From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Underscores in HTML Exported URLs get backslashes added Date: Thu, 10 Feb 2011 14:04:57 +0100 Message-ID: <877hd8rqfa.fsf@gnu.org> References: <70EEB780-5CD2-4299-93E0-932951CF3B32@criticalmass.com> <871v3gck9o.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=49980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnWCi-0001eM-Ox for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 08:05:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnWCb-0005CF-BB for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 08:04:54 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:63327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnWCb-0005Bs-2J for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 08:04:53 -0500 Received: by bwz16 with SMTP id 16so2080627bwz.0 for ; Thu, 10 Feb 2011 05:04:52 -0800 (PST) In-Reply-To: <871v3gck9o.fsf@norang.ca> (Bernt Hansen's message of "Thu, 10 Feb 2011 04:26:59 -0500") 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: Bernt Hansen Cc: emacs-orgmode Hi, Bernt Hansen writes: > Just wrap the http:// ... in [[ ]] as in > [[http://somefoo.com/this_is_broken]] This happens automatically, even when inbuffer links are not surrounded by brackets -- unless some org-export-preprocess-final-hook is reverting the normalization of links. Jonathan, what version of Org are you using? Can you reproduce your problem with a bare Emacs (~$ emacs -q)? Thanks, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Re: Underscores in HTML Exported URLs get backslashes added Date: Thu, 10 Feb 2011 09:04:31 -0500 Message-ID: <87wrl8asuo.fsf@norang.ca> References: <70EEB780-5CD2-4299-93E0-932951CF3B32@criticalmass.com> <871v3gck9o.fsf@norang.ca> <877hd8rqfa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41617 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnX8W-0001vM-Kd for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 09:04:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnX8P-0000Oe-37 for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 09:04:38 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:39157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnX8P-0000OV-1U for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 09:04:37 -0500 In-Reply-To: <877hd8rqfa.fsf@gnu.org> (Bastien's message of "Thu, 10 Feb 2011 14:04:57 +0100") 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: Bastien Cc: emacs-orgmode Bastien writes: > Hi, > > Bernt Hansen writes: > >> Just wrap the http:// ... in [[ ]] as in >> [[http://somefoo.com/this_is_broken]] > > This happens automatically, even when inbuffer links are not surrounded > by brackets -- unless some org-export-preprocess-final-hook is reverting > the normalization of links. > > Jonathan, what version of Org are you using? > > Can you reproduce your problem with a bare Emacs (~$ emacs -q)? > > Thanks, Bastien, I can reproduce this behaviour with a minimal emacs setup at commit ca220e9c40e4467f436a0a1501fb1fd730093cec Regards, Bernt