Bug 120287 - Layout, TabOverMargin compat mode: unexpected line break
Summary: Layout, TabOverMargin compat mode: unexpected line break
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:6.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-03 15:51 UTC by Miklos Vajna
Modified: 2018-10-08 10:12 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Reproducer document. (8.81 KB, application/vnd.oasis.opendocument.text)
2018-10-03 15:51 UTC, Miklos Vajna
Details
Second reproducer. (5.32 KB, application/vnd.oasis.opendocument.text-flat-xml)
2018-10-04 14:44 UTC, Miklos Vajna
Details
Third reproducer. (5.38 KB, application/vnd.oasis.opendocument.text-flat-xml)
2018-10-08 08:38 UTC, Miklos Vajna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miklos Vajna 2018-10-03 15:51:03 UTC
Created attachment 145351 [details]
Reproducer document.

Steps to reproduce:

1) Open the attached document in Writer.

2) Check the number of lines in the laid out text.

Expected result: single line, as Word 2016 does it, given that the Word-specific TabOverMargin compat mode is enabled.

Actual result: layout has 2 lines.

(If TabOverMargin is false, then we don't emulate Word and it makes sense to still lay out text in 2 lines.)
Comment 1 Commit Notification 2018-10-04 11:30:48 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=54204d53eb4854715500edc064123e8d687381b2

tdf#120287 sw layout, TabOverMargin: imply PrinterIndependentLayout=high-res

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Miklos Vajna 2018-10-04 14:44:38 UTC
Created attachment 145379 [details]
Second reproducer.

Similar related problem.

Expected result: "a b c d e" is rendered at the end of the first line. (Same what Word does.)

Actual result: only "a b c" is visible, and even that is rendered outside the body paint area. (The line break position is correct, though.)
Comment 3 Commit Notification 2018-10-05 11:29:22 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=cb2f30897ca5d9ced5b4a4d801af6f0a22c98cc0

Related: tdf#120287 sw layout, TabOverMargin: fix too wide tab portion

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Miklos Vajna 2018-10-08 08:38:48 UTC
Created attachment 145465 [details]
Third reproducer.

One more related problem: in this case we render text outside the paragraph area, expected is 3 lines, actual is 2 lines.
Comment 5 Commit Notification 2018-10-08 10:09:58 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=cb9ba1c2d0202b1932b637d83a9458879a1f2e6a

Related: tdf#120287 sw layout, TabOverMargin: fix left margin handling

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.