From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-html-use-unicode-chars breaks source code blocks Date: Tue, 04 Aug 2015 20:37:42 +0200 Message-ID: <87zj26gart.fsf@nicolasgoaziou.fr> References: <871tfjq7mb.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMh4L-0003J2-8H for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 14:36:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMh4K-0005Ae-2c for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 14:36:09 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:52141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMh4J-0005AD-Ry for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 14:36:08 -0400 In-Reply-To: <871tfjq7mb.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 04 Aug 2015 19:35:40 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Vladimir Alexiev writes: > >> I've set org-html-use-unicode-chars since I want ox-html to leave IRIs as IRIs. >> But this has another undesired effect: it breaks references in code, >> since it doesn't escape the brackets. > > I think this should only apply to entities. Any reason to do it on the > whole output? Nicolas? It was introduced in e8742b78e0a982a7fca0bf25b4f3551be58660ef. I'm not sure about the intent of this variable but I tend to think it is about beautification of the output. As a consequence, it isn't meant to apply to Org entities specifically. However, as you noticed, it is not subtle enough to apply `mm-url-decode-entities' on the full output. It needs to be applied piece-wise wherever that makes sense. `org-html-entity' is one case. Maybe `org-html-plain-text' for another one. Regards, -- Nicolas Goaziou