Bug 168400 - Justification slight misalignment on end of lines
Summary: Justification slight misalignment on end of lines
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph
  Show dependency treegraph
 
Reported: 2025-09-13 19:47 UTC by kr4z33
Modified: 2026-01-25 10:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (12.11 KB, application/vnd.oasis.opendocument.text)
2025-09-13 19:47 UTC, kr4z33
Details
Screenshot (1.09 KB, image/png)
2025-09-13 19:48 UTC, kr4z33
Details
photo-letters (21.17 KB, image/png)
2025-10-10 16:22 UTC, Sandy
Details
photo-numbers (16.84 KB, image/png)
2025-10-10 16:23 UTC, Sandy
Details
special-characters-alignment (11.70 KB, application/vnd.oasis.opendocument.text)
2025-10-10 21:56 UTC, Sandy
Details
special-characters-alignment (21.00 KB, image/png)
2025-10-10 21:56 UTC, Sandy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kr4z33 2025-09-13 19:47:33 UTC
Created attachment 202825 [details]
test file

Justified lines do not perfectly align on the right side, I notice this when including combinations of dashes and spaces in the line. the attached file and screenshot demonstrates a minor occurrence of this that I was able to re-create in a minimal test case.
Comment 1 kr4z33 2025-09-13 19:48:46 UTC
Created attachment 202826 [details]
Screenshot

This screenshot image shows the misalignment
Comment 2 Sandy 2025-10-10 16:21:31 UTC
Hi. I was able to observe the same behaviour with sentences that have/have not  “-”.

Bug summary : Symbol minus is smaller in width that a letter

Steps to reproduce:(photo-letters)
1.Create new text file
2. Select “Justified lines” option(or CTRL+J)
3.Write  
Line1:  A B C D E F G |
Line2:  A - C - E - G |
4. See where is situated “|”

Expected result: “|” from line 2 should be under “|” from line1
Actual result: “|” from line 2 is on the left “|” from line1


I’ve made the same scenario with numbers:(photo-numbers)
Line1: 1 2 3 4 5 6 7 |
Line2: 1 – 3 – 5 – 7 |

Here “-” has the same width as a number and “|” from line 2 is under “|” from line1


Technical details
Version:  LibreOffice 25.8.1
OS: Windows 10
Comment 3 Sandy 2025-10-10 16:22:47 UTC
Created attachment 203248 [details]
photo-letters
Comment 4 Sandy 2025-10-10 16:23:06 UTC
Created attachment 203249 [details]
photo-numbers
Comment 5 Sandy 2025-10-10 21:54:49 UTC
Hi. I was able to observe the same behavior with sentences that have/have not "-".

Bug summary : Special characters influence justified alignment for paragraphs

Steps to reproduce:(photo-letters)
1.Create new text file

2. Go to “Format” -> “Paragraph…” -> "Alignment" -> Select Options: Justified , Last line: Justified, check “Expand single word” and “ Snap to text grid(if active) -> Click Ok

3.Write  
Line1:  AA|
Line2: A space B space space C space space D space space space E space space space space space|
Line3: **************|
Line4: 25 spaces |
Line5: A space B space C space D|
(I will add this file)

4. See where is situated “|”

Expected result: “|” should be in the same place for all lines
Actual result: “|” is not in the same place for all lines

Tests:
Use another special characters (*) -> reproducing
Use space without dashes -> reproducing
Use one special character/space -> not reproducing


Technical details
Version:  LibreOffice 25.8.1
OS: Windows 10
Comment 6 Sandy 2025-10-10 21:56:06 UTC
Created attachment 203260 [details]
special-characters-alignment
Comment 7 Sandy 2025-10-10 21:56:35 UTC
Created attachment 203261 [details]
special-characters-alignment
Comment 8 Sandy 2025-10-10 21:58:09 UTC
(In reply to Sandy from comment #2)
> Hi. I was able to observe the same behaviour with sentences that have/have
> not  “-”.
> 
> Bug summary : Symbol minus is smaller in width that a letter
> 
> Steps to reproduce:(photo-letters)
> 1.Create new text file
> 2. Select “Justified lines” option(or CTRL+J)
> 3.Write  
> Line1:  A B C D E F G |
> Line2:  A - C - E - G |
> 4. See where is situated “|”
> 
> Expected result: “|” from line 2 should be under “|” from line1
> Actual result: “|” from line 2 is on the left “|” from line1
> 
> 
> I’ve made the same scenario with numbers:(photo-numbers)
> Line1: 1 2 3 4 5 6 7 |
> Line2: 1 – 3 – 5 – 7 |
> 
> Here “-” has the same width as a number and “|” from line 2 is under “|”
> from line1
> 
> 
> Technical details
> Version:  LibreOffice 25.8.1
> OS: Windows 10

This is not the behavior for this bug. Please skip this comment. 
Thank you.
Comment 9 Buovjaga 2026-01-21 19:19:56 UTC
Already seen in 7.0 and oldest of linux-43all repo.