From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-html-use-unicode-chars breaks source code blocks Date: Fri, 07 Aug 2015 11:56:31 +0200 Message-ID: <87zj23h168.fsf@gmx.us> References: <871tfjq7mb.fsf@gmx.us> <87zj26gart.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNeOP-0008Ta-Kq for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 05:56:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNeOK-0002el-RT for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 05:56:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:57724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNeOK-0002eW-Kq for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 05:56:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZNeOI-00005A-OY for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 11:56:42 +0200 Received: from ip5b4025d5.dynamic.kabel-deutschland.de ([91.64.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Aug 2015 11:56:42 +0200 Received: from rasmus by ip5b4025d5.dynamic.kabel-deutschland.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Aug 2015 11:56:42 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > 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. OK. I added it to plain-text as well. What is an example of a plain-text that would need beautification? Should we apply it to snippets as well? In the spirit of "beautification" it would make sense, but it could also seem like a bad choice. Rasmus -- Slowly unravels in a ball of yarn and the devil collects it