Bug 131058 - Last line in text box cannot be justified
Summary: Last line in text box cannot be justified
Status: RESOLVED DUPLICATE of bug 91326
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-02 06:42 UTC by Marcel Waldvogel
Modified: 2021-12-29 15:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot showing settings (and that they are ineffective) (73.63 KB, image/png)
2020-03-02 20:01 UTC, Marcel Waldvogel
Details
Sample document with the settings applied (10.34 KB, application/vnd.oasis.opendocument.graphics)
2020-03-02 20:02 UTC, Marcel Waldvogel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Waldvogel 2020-03-02 06:42:45 UTC
Description:
The last line of a justified text box is always start-aligned, even if "Last line" is set to "centered" or "justified".

Steps to Reproduce:
1. Create a new draw document
2. Create a new text box, tall enough to fit multiple lines
3. Enter some text spanning multiple lines
4. In Paragraph->Alignment, set to "Justified" with "Last line: Justified"

Actual Results:
Last line is not justified.

Expected Results:
Last line is justified as well.


Reproducible: Always


User Profile Reset: No



Additional Info:
This is probably related to #91326.

As an ugly workaround, the following can be used: At the end of the last line, add a space and then as many Em-Quads (U+2001) or similar until the line wraps. But this is not what one can tell ordinary users.
Comment 1 Marcel Waldvogel 2020-03-02 06:56:10 UTC
A simpler workaround is to hit Shift-Enter.
Comment 2 Xisco Faulí 2020-03-02 11:26:02 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 Marcel Waldvogel 2020-03-02 20:01:16 UTC
Created attachment 158318 [details]
Screenshot showing settings (and that they are ineffective)
Comment 4 Marcel Waldvogel 2020-03-02 20:02:45 UTC
Created attachment 158319 [details]
Sample document with the settings applied

New text box, enter multiline text, set alignment to justified, last line to justified (the latter is ignored).
Comment 5 Ming Hua 2020-03-02 20:22:06 UTC
Reproduced with the attached sample file on 6.3.5:

Version: 6.3.5.2 (x64)
Build ID: dd0751754f11728f69b42ee2af66670068624673
CPU threads: 2; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: zh-CN (zh_CN); UI-Language: en-US
Calc: threaded
Comment 6 Ming Hua 2020-03-02 20:32:29 UTC
Also reproducible on 5.2.7:

Version: 5.2.7.2 (x64)
Build ID: 2b7f1e640c46ceb28adf43ee075a6e8b8439ed10
CPU Threads: 2; OS Version: Windows 6.19; UI Render: default; 
Locale: zh-CN (zh_CN); Calc: group

... which is the oldest version I have installed.
Comment 7 Stéphane Guillou (stragu) 2021-12-29 15:23:51 UTC

*** This bug has been marked as a duplicate of bug 91326 ***