emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ODT][BUG] Format error on export with table in list structure


From: Christian Moe
Subject: [ODT][BUG] Format error on export with table in list structure
Date: Wed, 10 Aug 2022 23:17:15 +0200
User-agent: mu4e 1.2.0; emacs 27.2

Hi,

Consider the following minimal example, a nested list with a table in a
sub-item (regardless of list types and empty lines):

#+BEGIN_EXAMPLE
1. List item
   - Sub-item
     | Table |
#+END_EXAMPLE

This causes a format error on ODT export (I'm running Org version
9.5.4). In the content.xml file, just before the final closing
</text:list> tag, there appears a </text:list-header> tag without a
corresponding opening tag, invalidating the XML.

It may be related to this problem that, just after the table section,
for some reason there appears another numbered list item containing an
empty bulleted list, as if the list were trying to continue.

However, surrounding the table with further list items does not
help. This example causes the same error:

#+BEGIN_EXAMPLE
1. List item
   - Sub-item
     | Table |
   - Second sub-item
2. Second top-level item
#+END_EXAMPLE

If this can be reproduced, I think it's a bug.

(It might be argued that this mix of lists and tables is an abomination
and should not be allowed anyway, but it works in the other exporters.)

What *does* help, strangely, is mixing yet another table into the list
structure. The following example exports without error.

#+BEGIN_EXAMPLE
1. List item
   | Table |
   - Sub-item
     | Table |
#+END_EXAMPLE

Perhaps this can somehow help pin down the problem.

Yours,
Christian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]