* [PATCH] lisp/ox-html.el: Minimal encoding for code and verbatim text
@ 2013-06-06 19:09 Aurélien Aptel
2013-06-09 9:31 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Aurélien Aptel @ 2013-06-06 19:09 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 117 bytes --]
I've reported the following bug earlier:
http://article.gmane.org/gmane.emacs.orgmode/72967
Here's a fix, attached.
[-- Attachment #2: 0001-lisp-ox-html.el-Minimal-encoding-for-code-and-verbat.patch --]
[-- Type: application/octet-stream, Size: 1344 bytes --]
From dfc2edc63bce6842dbc3f786c2c8436e4bbbebb8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Aptel?= <aurelien.aptel@gmail.com>
Date: Thu, 6 Jun 2013 20:55:33 +0200
Subject: [PATCH] lisp/ox-html.el: Minimal encoding for code and verbatim text
* lisp/ox-html.el: Remove fancy string replacements for code and
verbatim text when exporting to html.
Exporting =--option= or ~--option~ to html used to replace -- with a
ndash.
TINYCHANGE
---
lisp/ox-html.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index ef7d15a..17af72e 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2011,7 +2011,7 @@ channel."
CONTENTS is nil. INFO is a plist holding contextual
information."
(format (or (cdr (assq 'code org-html-text-markup-alist)) "%s")
- (org-html-plain-text (org-element-property :value code) info)))
+ (org-html-encode-plain-text (org-element-property :value code))))
;;;; Drawer
@@ -3117,7 +3117,7 @@ holding contextual information."
CONTENTS is nil. INFO is a plist holding contextual
information."
(format (or (cdr (assq 'verbatim org-html-text-markup-alist)) "%s")
- (org-html-plain-text (org-element-property :value verbatim) info)))
+ (org-html-encode-plain-text (org-element-property :value verbatim))))
;;;; Verse Block
--
1.8.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lisp/ox-html.el: Minimal encoding for code and verbatim text
2013-06-06 19:09 [PATCH] lisp/ox-html.el: Minimal encoding for code and verbatim text Aurélien Aptel
@ 2013-06-09 9:31 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-06-09 9:31 UTC (permalink / raw)
To: Aurélien Aptel; +Cc: emacs-orgmode
Hello,
Aurélien Aptel <aurelien.aptel@gmail.com> writes:
> I've reported the following bug earlier:
> http://article.gmane.org/gmane.emacs.orgmode/72967
>
> Here's a fix, attached.
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-09 9:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-06 19:09 [PATCH] lisp/ox-html.el: Minimal encoding for code and verbatim text Aurélien Aptel
2013-06-09 9:31 ` Nicolas Goaziou
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).