mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 22:47:56 +00:00
lisp/ox-odt.el (org-odt-item): Fix table hack inside nested list
* lisp/ox-odt.el (org-odt-item): When exporting table inside a list, fix scenario when the table is located inside a sub-list of another list. Reported-by: Christian Moe <mail@christianmoe.com> Link: https://orgmode.org/list/87edxn9z7n.fsf@localhost
This commit is contained in:
parent
90045c45e2
commit
ef43642874
|
@ -1945,7 +1945,16 @@ contextual information."
|
|||
(format "\n<text:list-item%s>\n%s\n%s"
|
||||
(if count (format " text:start-value=\"%s\"" count) "")
|
||||
contents
|
||||
(if (org-element-map item 'table #'identity info 'first-match)
|
||||
(if (org-element-map item
|
||||
'table #'identity info 'first-match
|
||||
;; Ignore tables inside sub-lists.
|
||||
'(plain-list))
|
||||
;; `org-odt-table' will splice forced list ending (all
|
||||
;; the way up to the topmost list parent), table, and
|
||||
;; forced list re-opening in the middle of the item,
|
||||
;; marking text after table with <text:list-header>
|
||||
;; So, we must match close </text:list-header> instead
|
||||
;; of the original </text:list-item>.
|
||||
"</text:list-header>"
|
||||
"</text:list-item>"))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue