emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH][New exporter] Fix: org-e-html-special-block had not been con


From: Sean O'Halpin
Subject: [O] [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

* 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]