emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-html-use-unicode-chars breaks source code blocks
@ 2015-08-04 13:40 Vladimir Alexiev
  2015-08-04 17:35 ` Rasmus
  0 siblings, 1 reply; 14+ messages in thread
From: Vladimir Alexiev @ 2015-08-04 13:40 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-08-17 16:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04 13:40 org-html-use-unicode-chars breaks source code blocks Vladimir Alexiev
2015-08-04 17:35 ` 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

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).