emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: HTML export problem [8.2.3b]
@ 2013-11-13 15:40 Nishiyama Nobuyuki
  2013-11-13 23:50 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Nishiyama Nobuyuki @ 2013-11-13 15:40 UTC (permalink / raw)
  To: emacs-orgmode

Dear org-mode team.

Hi

org-mode is gread major mode in my emacs life.

But, If this org-file is export to HTML, an indent will collapse. 

I wish keep indents...

Best regards.


test.org

* Sample A

#+BEGIN_SRC C++

#include "Eigen/Core"

// Good layout.
// The indent is maintained. 
int main() {
  Eigen::Matrix3i m;
  m << 1, 2, 3,
       4, 5, 6,
       7, 8, 9;
}

#+END_SRC

* Sample B

#+BEGIN_SRC C++

#include "Eigen/Core"

// Bad layout.
// The indent has collapsed. 
int main() {
  Eigen::Matrix3i m1;
  m1 << 1, 2, 3,
        4, 5, 6,
        7, 8, 9;
}

#+END_SRC


こんにちは。
私にとって、org-modeはemacsの中でもっとも素晴らしいmajor modeです。

ところが、1つ問題があります。

このorgファイルをhtmlファイルにエクスポートすると、
ソースコードのレイアウトが崩れてしまう場合があります。
何が問題なのでしょうか??

お手数をおかけしますが、宜しくお願いします。


Emacs  : GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 AppKit 1265)
 of 2013-11-09 on Nishiyama-no-MacBook-Air.local
Package: Org-mode version 8.2.3b (8.2.3b-dist @ /Users/nishi/.emacs.d/lisp/)

current state:
==============
(setq
 org-hide-leading-stars t
 org-agenda-log-mode-items '(closed clock state)
 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-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-agenda-skip-timestamp-if-done t
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-log-done 'time
 org-confirm-shell-link-function 'yes-or-no-p
 org-read-date-popup-calendar nil
 org-agenda-restore-windows-after-quit t
 org-special-ctrl-a/e t
 org-todo-keyword-faces '(("WAIT" :foreground "#0000FF" :weight bold) ("ABORT" :foreground "#E000FF" :weight bold))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-tags-column -115
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
								 #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
								 org-babel-result-hide-spec org-babel-hide-all-hashes org-mode-hooks)
 org-stuck-projects '("+PROJECT&+LEVEL=2/-DONE" ("TODO" "NEXT" "NEXTACTION" "WAIT" "ABORT") nil "")
 org-agenda-time-grid '((daily today require-timed) #("----------------" 0 16 (org-heading t)) (800 1000 1200 1400 1600 1800 2000 2200))
 org-yank-adjusted-subtrees t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 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-tags-column -130
 org-archive-location "::* Archived Tasks"
 org-agenda-after-show-hook '(my-org-agenda-after-show-hooks)
 org-todo-keywords '((sequence "TODO" "WAIT" "|" "DONE" "ABORT"))
 org-agenda-window-setup 'current-window
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-odd-levels-only t
 org-insert-heading-respect-content t
 org-agenda-mode-hook '(org-agenda-mode-hooks)
 org-agenda-files '("~/to-do.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

-- 
Nishiyama Nobuyuki
Mail: nishiyama@target-ent.com

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

* Re: Bug: HTML export problem [8.2.3b]
  2013-11-13 15:40 Bug: HTML export problem [8.2.3b] Nishiyama Nobuyuki
@ 2013-11-13 23:50 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2013-11-13 23:50 UTC (permalink / raw)
  To: emacs-orgmode

Nishiyama Nobuyuki <nishiyama@target-ent.com> writes:

> Dear org-mode team.
>
> Hi
>
> org-mode is gread major mode in my emacs life.
>
> But, If this org-file is export to HTML, an indent will collapse. 
>
> I wish keep indents...
>

I cannot reproduce it: the two code blocks render identically in my
test. What does the resulting HTML file look like?

Nick

Org-mode version 8.2.3a (release_8.2.3a-195-ge4984e @
/home/nick/elisp/org-mode/lisp/)

> Best regards.
>
>
> test.org
>
> * Sample A
>
> #+BEGIN_SRC C++
>
> #include "Eigen/Core"
>
> // Good layout.
> // The indent is maintained. 
> int main() {
>   Eigen::Matrix3i m;
>   m << 1, 2, 3,
>        4, 5, 6,
>        7, 8, 9;
> }
>
> #+END_SRC
>
> * Sample B
>
> #+BEGIN_SRC C++
>
> #include "Eigen/Core"
>
> // Bad layout.
> // The indent has collapsed. 
> int main() {
>   Eigen::Matrix3i m1;
>   m1 << 1, 2, 3,
>         4, 5, 6,
>         7, 8, 9;
> }
>
> #+END_SRC
>

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

end of thread, other threads:[~2013-11-13 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13 15:40 Bug: HTML export problem [8.2.3b] Nishiyama Nobuyuki
2013-11-13 23:50 ` Nick Dokos

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