forked from mirrors/org-mode
Merge branch 'maint'
This commit is contained in:
commit
419b69a435
10
lisp/ox.el
10
lisp/ox.el
|
@ -4481,9 +4481,9 @@ same column as TABLE-CELL, or nil."
|
|||
(plist-put info :table-cell-width-cache
|
||||
(make-hash-table :test 'equal)))
|
||||
:table-cell-width-cache)))
|
||||
(key (cons table column)))
|
||||
(or (let ((cached (gethash key cache 'no-result)))
|
||||
(and (not (eq cached 'no-result)) cached))
|
||||
(key (cons table column))
|
||||
(value (gethash key cache 'no-result)))
|
||||
(if (not (eq value 'no-result)) value
|
||||
(let (cookie-width)
|
||||
(dolist (row (org-element-contents table)
|
||||
(puthash key cookie-width cache))
|
||||
|
@ -4492,8 +4492,8 @@ same column as TABLE-CELL, or nil."
|
|||
(let* ((value (org-element-contents
|
||||
(elt (org-element-contents row) column)))
|
||||
(cookie (car value)))
|
||||
;; The following checks avoid expanding unnecessarily the
|
||||
;; cell with `org-export-data'
|
||||
;; The following checks avoid expanding unnecessarily
|
||||
;; the cell with `org-export-data'.
|
||||
(when (and value
|
||||
(not (cdr value))
|
||||
(stringp cookie)
|
||||
|
|
Loading…
Reference in a new issue