emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vladimir Alexiev <vladimir.alexiev@ontotext.com>
To: emacs-orgmode@gnu.org
Subject: org-html-use-unicode-chars breaks source code blocks
Date: Tue, 4 Aug 2015 13:40:58 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150804T153529-191@post.gmane.org> (raw)

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 <URL> references in code,
since it doesn't escape the brackets.

Eg this:

#+BEGIN_SRC Turtle
@prefix aat:   <http://vocab.getty.edu/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.

             reply	other threads:[~2015-08-04 13:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04 13:40 Vladimir Alexiev [this message]
2015-08-04 17:35 ` org-html-use-unicode-chars breaks source code blocks Rasmus
2015-08-04 18:37   ` Nicolas Goaziou
2015-08-07  9:56     ` Rasmus
2015-08-07 10:37       ` Nicolas Goaziou
2015-08-07 10:57         ` Rasmus
2015-08-08 21:09           ` Andreas Leha
2015-08-09 19:32             ` Sebastien Vauban
2015-08-16 13:48             ` Bastien Guerry
2015-08-16 18:47               ` Brady Trainor
2015-08-17  8:01                 ` Nicolas Goaziou
2015-08-17  8:41                   ` Brady Trainor
2015-08-17 16:44                   ` Rasmus
2015-08-16 14:03           ` Bastien Guerry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20150804T153529-191@post.gmane.org \
    --to=vladimir.alexiev@ontotext.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).