From: "Sean O'Halpin" <sean.ohalpin@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version
Date: Wed, 29 Aug 2012 19:17:52 +0100 [thread overview]
Message-ID: <CAOXM+eX+QVGr_8Dm2ssQ7mqOcZbyTvfmbNBAEkCCAADL_hmiJg@mail.gmail.com> (raw)
* contrib/lisp/org-e-html.el (org-e-html-special-block): convert LaTeX
markup to HTML
This function had not been modified from its org-e-latex-special-block original
so with #+BEGIN_ORG for example you would get \begin{org}...\end{org}
in the output
instead of <div class="org">...</div>.
---
contrib/lisp/org-e-html.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el
index 1c2255b..2d3d3c4 100644
--- a/contrib/lisp/org-e-html.el
+++ b/contrib/lisp/org-e-html.el
@@ -2617,7 +2617,7 @@ holding contextual information."
(let ((type (downcase (org-element-property :type special-block))))
(org-e-html--wrap-label
special-block
- (format "\\begin{%s}\n%s\\end{%s}" type contents type))))
+ (format "<div class=\"%s\">\n%s\n</div>" type contents))))
;;;; Src Block
--
1.7.0.4
next reply other threads:[~2012-08-29 18:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-29 18:17 Sean O'Halpin [this message]
2012-08-29 18:20 ` [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version Bastien
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=CAOXM+eX+QVGr_8Dm2ssQ7mqOcZbyTvfmbNBAEkCCAADL_hmiJg@mail.gmail.com \
--to=sean.ohalpin@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).