From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Alexiev Subject: org-html-use-unicode-chars breaks source code blocks Date: Tue, 4 Aug 2015 13:40:58 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMcSu-0005W8-LN for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 09:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMcSp-0003Fd-Lb for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 09:41:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:45212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMcSp-0003FT-EA for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 09:41:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZMcSl-00058Y-R5 for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 15:41:04 +0200 Received: from 82.118.248.245 ([82.118.248.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2015 15:41:03 +0200 Received: from vladimir.alexiev by 82.118.248.245 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2015 15:41:03 +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 Hi! 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. Eg this: #+BEGIN_SRC Turtle @prefix aat: . #+END_SRC results in the URL being invisible in the exported HTML. The fault is here: (defun org-html-final-function (contents backend info) ... (when org-html-use-unicode-chars (require 'mm-url) (mm-url-decode-entities)) previous code carefully escaped the entities in org-html-protect-char-alist, only for mm-url-decode-entities to unescape them. http://article.gmane.org/gmane.emacs.orgmode/94742 is somewhat related.