forked from mirrors/org-mode
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.
This commit is contained in:
parent
39384cc157
commit
180d112334
|
@ -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
|
alignment value will be deduced from fraction of numbers in the
|
||||||
column (see `org-table-number-fraction' for more information).
|
column (see `org-table-number-fraction' for more information).
|
||||||
Possible values are `left', `right' and `center'."
|
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))
|
(let* ((row (org-export-get-parent table-cell))
|
||||||
(table (org-export-get-parent row))
|
(table (org-export-get-parent row))
|
||||||
(cells (org-element-contents row))
|
(cells (org-element-contents row))
|
||||||
|
|
Loading…
Reference in New Issue