sw: DOCX export: fix first-line indent of list items

Desktop / LibreOffice - Michael Stahl [cib.de] - 27 February 2020 15:43 EST

The problem is that since CVS import, if a SwTextNode has a first-line indent and is in a list or outline that has LABEL_WIDTH_AND_POSITION mode, then MSWordExportBase::OutputTextNode() will throw away the node's first-line indent and overwrite it with the numbering's.

Experiments indicate that adding the numbering's value to the node's
value fixes most cases, but RTL still doesn't work in many cases.

Change-Id: I9707f475dac4e501642ebaf51c0117107fd34a3b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89634

74e3c95b9b62 sw: DOCX export: fix first-line indent of list items
sw/qa/extras/ooxmlexport/data/Hau_min_list2.fodt | 334 +++++++++++++++++++++++
sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 102 +++++++
sw/source/filter/ww8/wrtw8nds.cxx | 8 +-
3 files changed, 442 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share