diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-08-18 08:35:15 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-08-18 08:35:15 +0200 |
commit | ce58d6dd0ae0f58c61731f00d6e60891bd757bb3 (patch) | |
tree | 8a84de956102d96ab9dca459f395bf4d95239baa | |
parent | 4ea5658a1a14efaa7cf3fff883cd43cac2019c77 (diff) | |
download | org-mode-ce58d6dd0ae0f58c61731f00d6e60891bd757bb3.tar.gz |
Align table before converting it to a table.el table
* lisp/org-table.el (org-table-create-with-table.el): Align table
before converting.
-rw-r--r-- | lisp/org-table.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el index 6172e1c..a6f7ac4 100644 --- a/lisp/org-table.el +++ b/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) |