tdf#142404 DOCX c15: handle remaining TabOverSpacing tabs
commitb85491e40ccb83ff78c7c4b2c0d535eafa5d23ed
authorJustin Luth <justin_luth@sil.org>
Fri, 11 Jun 2021 14:19:12 +0000 (11 16:19 +0200)
committerJustin Luth <justin_luth@sil.org>
Sat, 19 Jun 2021 18:13:49 +0000 (19 20:13 +0200)
tree9f62cea1b8ff1b51ef5ed046354e5ca998396b9f
parentce762a7ab170aa1115cfb0dd68f1c50abf5a86f3
tdf#142404 DOCX c15: handle remaining TabOverSpacing tabs

The previous commit handled the case where a non-first
LEFT tab was beyond the text area. But the remaining
cases were still being (mis)treated as automatic tabs.

We won't worry about the impact where compatibilityMode
is less than 15/2013+ since Word is absolutely goofy,
and LO doesn't even come close to matching it.

But in compat15 mode, the end result of having a
non-LEFT tab over the margin effecively means that
the text will flow backwards from the right margin,
just as if it was a RIGHT tabstop. So treat all of
the remaining tabs as a right-tab at the end of
the paragraph-area.

Change-Id: I43a38516c0639c56341bdba0213ffb4a7d5cbf3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117340
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
sw/source/core/text/txttab.cxx