Align table before converting it to a table.el table

* lisp/org-table.el (org-table-create-with-table.el): Align table
before converting.
This commit is contained in:
Carsten Dominik 2010-08-18 08:35:15 +02:00
parent 4ea5658a1a
commit ce58d6dd0a
1 changed files with 3 additions and 2 deletions

View File

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