From 39384cc1575c990fa4e8a821b9870b00844459e9 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 29 Aug 2013 10:37:53 +0200 Subject: [PATCH 1/2] ox: Fix 8c833ed9fbabae298054dd9eec574984acf3ab8b * lisp/ox.el (org-export-table-cell-alignment): Use correct :test. See 2baa2c3afa70f86a6266b4bb9d5f763c5fb18388. --- lisp/ox.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index 7dad90857..8c68cdac4 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -4523,7 +4523,7 @@ Possible values are `left', `right' and `center'." (cache (or (plist-get info :table-cell-alignment-cache) (plist-get (setq info (plist-put info :table-cell-alignment-cache - (make-hash-table :test 'equal))) + (make-hash-table :test 'eq))) :table-cell-alignment-cache))) (align-vector (or (gethash table cache) (puthash table (make-vector columns nil) cache)))) From 180d1123343f47f8c4c06b0095d38458746356e3 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 29 Aug 2013 10:38:15 +0200 Subject: [PATCH 2/2] 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))