emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version
@ 2012-08-29 18:17 Sean O'Halpin
  2012-08-29 18:20 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Sean O'Halpin @ 2012-08-29 18:17 UTC (permalink / raw)
  To: Org Mode

* 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

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

* Re: [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version
  2012-08-29 18:17 [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version Sean O'Halpin
@ 2012-08-29 18:20 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-08-29 18:20 UTC (permalink / raw)
  To: Sean O'Halpin; +Cc: Org Mode

Hi Sean,

"Sean O'Halpin" <sean.ohalpin@gmail.com> writes:

> * contrib/lisp/org-e-html.el (org-e-html-special-block): convert LaTeX
> markup to HTML

Applied, thanks!  

(Nitpicking: please add TINYCHANGE for such changes, we need this 
cookie when merging Org into Emacs...  Thanks!)

-- 
 Bastien

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

end of thread, other threads:[~2012-08-29 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 18:17 [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version Sean O'Halpin
2012-08-29 18:20 ` Bastien

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