瀏覽代碼

Freemind export: Fix odd level issue

Carsten Dominik 15 年之前
父節點
當前提交
b69adf6738
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 3 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-freemind.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-03-26  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-freemind.el (org-freemind-write-mm-buffer): Fix another
+	problem with odd levels.
+
 	* org-ascii.el (org-export-as-ascii): Export email only if the
 	author wants it.
 

+ 2 - 1
lisp/org-freemind.el

@@ -706,7 +706,8 @@ Otherwise give an error say the file exists."
           (with-current-buffer mm-buffer
             (while (> current-level base-level)
               (insert "</node>\n")
-              (setq current-level (1- current-level))
+	      (setq current-level 
+		    (- current-level (if odd-only 2 1)))
               ))
           (with-current-buffer mm-buffer
             (insert "</map>")