From: "Aurélien Aptel" <aurelien.aptel@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [PATCH] lisp/ox-html.el: Minimal encoding for code and verbatim text
Date: Thu, 6 Jun 2013 21:09:28 +0200 [thread overview]
Message-ID: <CA+5B0FNXYqkZeK06CxCOE6vVoNC4J4WTEpNB+4onJ-Mrx0YGcw@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2013-06-06 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 19:09 Aurélien Aptel [this message]
2013-06-09 9:31 ` [PATCH] lisp/ox-html.el: Minimal encoding for code and verbatim text Nicolas Goaziou
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=CA+5B0FNXYqkZeK06CxCOE6vVoNC4J4WTEpNB+4onJ-Mrx0YGcw@mail.gmail.com \
--to=aurelien.aptel@gmail.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).