From 180d1123343f47f8c4c06b0095d38458746356e3 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 29 Aug 2013 10:38:15 +0200 Subject: [PATCH] ox: Fix void `org-table-number-fraction' * lisp/ox.el (org-export-table-cell-alignment): Ensure required variables are available. This error is triggered in ODT export with lists using :list-table feature. This creates tables as parsed data on the fly in the tree, triggering call to `org-export-table-cell-alignment', but `org-table' library may not be available. --- lisp/ox.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/ox.el b/lisp/ox.el index 8c68cdac4..840645b33 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -4515,6 +4515,8 @@ same column as TABLE-CELL. If no such cookie is found, a default alignment value will be deduced from fraction of numbers in the column (see `org-table-number-fraction' for more information). Possible values are `left', `right' and `center'." + ;; Load `org-table-number-fraction' and `org-table-number-regexp'. + (require 'org-table) (let* ((row (org-export-get-parent table-cell)) (table (org-export-get-parent row)) (cells (org-element-contents row))