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: nishiy...@target-ent.com

Reply via email to