浏览代码

Align table before converting it to a table.el table

* lisp/org-table.el (org-table-create-with-table.el): Align table
before converting.
Carsten Dominik 14 年之前
父节点
当前提交
ce58d6dd0a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      lisp/org-table.el

+ 3 - 2
lisp/org-table.el

@@ -369,8 +369,9 @@ and table.el tables."
     (if (y-or-n-p "Convert table to Org-mode table? ")
 	(org-table-convert)))
    ((org-at-table-p)
-    (if (y-or-n-p "Convert table to table.el table? ")
-	(org-table-convert)))
+    (when (y-or-n-p "Convert table to table.el table? ")
+      (org-table-align)
+      (org-table-convert)))
    (t (call-interactively 'table-insert))))
 
 (defun org-table-create-or-convert-from-region (arg)