office-gobmx/xmloff/qa/unit/data/listRestartAfterBreak.fodt
Mike Kaganski 7db19db341 ODF export: simplify restart handling to skip list id where possible
This continues to minimize cases where random ids are written, helping
to make the output more deterministic; it builds upon commits
8f48f91009 (ODT export: omit unreferenced
<text:list xml:id="...">, 2022-03-10), and
82bbf63582 (tdf#155823: Improve the check
if the list id is not required, 2023-06-14).

The previous code used to write 'text:continue-list' when the list is
restarted. It is unnecessary when there is no other condition requiring
such a reference (like style change, or interleaving lists); so relax
the conditions allowing to put simple 'text:continue-numbering="true"'.
This also allows to simplify a bit the code around 'ShouldSkipListId'.

Change-Id: Idf8be455953d08fd578266bda22f3a55d7b9ee23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153104
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-06-15 15:47:01 +02:00

25 lines
No EOL
866 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.text">
<office:body>
<office:text>
<text:list text:style-name="Numbering 123">
<text:list-item>
<text:p>Item1</text:p>
</text:list-item>
</text:list>
<text:p/>
<text:list text:continue-numbering="true" text:style-name="Numbering 123">
<text:list-item>
<text:p>Item2</text:p>
</text:list-item>
</text:list>
<text:p/>
<text:list text:continue-numbering="true" text:style-name="Numbering 123">
<text:list-item text:start-value="1">
<text:p>Item3 (restarted)</text:p>
</text:list-item>
</text:list>
</office:text>
</office:body>
</office:document>