From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: HTML Export doesn't handle internal link with spaces [8.0.7 (8.0.7-6-g13cb28-elpa @ /home/jbalint/.emacs.d/elpa/org-20130812/)] Date: Sun, 05 Jan 2014 01:03:41 +0100 Message-ID: <87r48nmh0i.fsf@gmail.com> References: <87zjo034l8.wl%jbalint@gmail.com> <87sitnjit3.fsf@gmail.com> <87r48pce92.fsf@bzg.ath.cx> <8738l5ds2n.fsf@gmail.com> <87r48nstkt.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzbBf-00082b-DW for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 19:03:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzbBa-0003Nm-3r for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 19:03:27 -0500 In-Reply-To: <87r48nstkt.fsf@bzg.ath.cx> (Bastien's message of "Sat, 04 Jan 2014 15:35:46 +0100") 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: Jess Balint , emacs-orgmode@gnu.org Hello, Bastien writes: > Nicolas Goaziou writes: > >> Also, I think there will be a problem if an internal link contains >> brackets. E.g, how to create an internal link to the following headline? >> >> * Some [headline] > > Maybe we can just escape square brackets for such internal links. > At least this would solve the OP problem. I'm not sure to understand. IIUC, one reason for url-hexification is to avoid forbidden characters in Org links, i.e., Org hexifies links to escape characters like brackets. Do you mean using another escape mechanism? If so, I think the problem would be the same as before (impossible to know if link at point was escaped or not in the first place). Another idea would be to get rid of automatic hexification in all cases, and have more tolerant regexps for links. Regards, -- Nicolas Goaziou