From: super.quazimodo@gmail.com (S.S)
To: emacs-orgmode@gnu.org
Subject: Bug: Literal Examples are malformed in exports (to html/tex) [8.0.3 (release_8.0.3-165-g60ca9e @ /home/quazimodo/.emacs.d/vendor/org-mode/lisp/)]
Date: Thu, 30 May 2013 04:59:05 +1000 [thread overview]
Message-ID: <87d2s9629y.fsf@gmail.com> (raw)
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
http://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------
I add a literal example like
#+BEGIN_SRC
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
#+END_SRC
and
#+BEGIN_EXAMPLE
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
#+END_EXAMPLE
to an org file in various places.
Export with (org-html-export-to-html) and (org-latex-export-to-latex)
produces inconsistent and malformed example blocks. Some of these blocks
produce
<p>
#+BEGIN<sub>EXAMPLE</sub>
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
</p>
Others produce
<p>
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
</p>
and
\#+BEGIN$_{\text{EXAMPLE}}$
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
\#+END$_{\text{EXAMPLE}}$
vs
\begin{example
}
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
\end{example
I expect to see correctly created example areas that maintain
spacing/tabs/newlines.
I add the following before an example block
#+ATTR_HTML: :textarea t :width 40
and it creates
<div textarea="t" width="40" class="example
">
<p>
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
</p>
NOTE: I do not believe that I have a mixed install. By deleting org-mode
8.0.3 and using the built-in 7.8.11 these problems are resolved.
Emacs : GNU Emacs 24.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2012-11-10 on charichuelo, modified by Debian
Package: Org-mode version 8.0.3 (release_8.0.3-165-g60ca9e @ /home/quazimodo/.emacs.d/vendor/org-mode/lisp/)
current state:
==============
(setq
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
org-babel-pre-tangle-hook '(save-buffer)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-mode-hook '((lambda nil
(org-add-hook (quote change-major-mode-hook) (quote org-show-block-all)
(quote append) (quote local))
)
(lambda nil
(org-add-hook (quote change-major-mode-hook)
(quote org-babel-show-result-all) (quote append) (quote local))
)
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-confirm-shell-link-function 'yes-or-no-p
)
next reply other threads:[~2013-05-29 18:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 18:59 S.S [this message]
2013-05-29 19:10 ` Bug: Literal Examples are malformed in exports (to html/tex) [8.0.3 (release_8.0.3-165-g60ca9e @ /home/quazimodo/.emacs.d/vendor/org-mode/lisp/)] Nicolas Goaziou
[not found] ` <CAKnJoB5cg-7m0qyh2nun5ANMxg=d9tukTrXEg2d8Oo-fXZDWuw@mail.gmail.com>
[not found] ` <871u8ph9r5.fsf@gmail.com>
2013-05-29 19:45 ` S S
2013-05-29 21:36 ` Nicolas Goaziou
2013-05-30 1:16 ` S S
2013-05-30 2:20 ` S S
2013-05-30 6:34 ` S S
2013-05-30 7:38 ` Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2013-05-29 18:15 S.S
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=87d2s9629y.fsf@gmail.com \
--to=super.quazimodo@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).