Bug 152552 - When placing line numbering on the right, numbers are left-aligned
Summary: When placing line numbering on the right, numbers are left-aligned
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Line-Numbering
  Show dependency treegraph
 
Reported: 2022-12-16 15:13 UTC by Eyal Rozenberg
Modified: 2023-03-10 14:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2022-12-16 15:13:12 UTC
Reproduction instructions:

1. Create a new Writer document
2. Insert at least 10 lines of text (to see line numbers with two digits)
3. On the menu, in Tools | Options, enable Line Numbering with an interval of 1 and placement on the right.

Expected Result:
The line numbers appear aligned on the right edge of their rightmost digit, like they are when placed Left:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10


Actual result:
The line numbers appear aligned on the left edge of their leftmost digit.

1
2
3
4
5
6
7
8
9
10

Now, if we could control the alignment ourselves (see also bug 152537), then this would not have been such a big deal - only a poor choice of default IMNSHO. But we can't do that
Comment 1 Rainer Bielefeld Retired 2022-12-17 15:07:27 UTC
Not a new effect, already reproducible with Version 4.0.0.3 (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89)
Comment 2 Rainer Bielefeld Retired 2022-12-17 15:15:20 UTC
a) Already visible in OOo 3.2.0

b) No Obvious DUPs found with query <https://bugs.documentfoundation.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=DUPs152552&sharer_id=19321>

c) Bug or Feature? SoftMaker 'TextMaker' does it the same way. Line numbers at the right are left aligned. But I can't see any sense in that formatting.
Comment 3 Sophie Sipasseuth 2023-01-10 09:23:40 UTC
Hello,

I am new here and this is my first comment!
I reproduced your instructions.
And this is what is happen :
All the line are numbered in the right but the line numbers appear aligned on the left edge of their leftmost digit.

I use a PC with Window 10 - Libre Office Dev 7 in frensh.

In this article, the alignment of number in tables recommends to coordinate the alignment of numbers, aligned right when right and aligned left when left :
https://ux.stackexchange.com/questions/117685/in-tables-should-date-time-year-in-table-be-left-or-right-aligned

Maybe, it is the best practice also in a text.
Comment 4 Eyal Rozenberg 2023-03-10 14:12:36 UTC
(In reply to Sophie Sipasseuth from comment #3)
> https://ux.stackexchange.com/questions/117685/in-tables-should-date-time-
> year-in-table-be-left-or-right-aligned
> 
> Maybe, it is the best practice also in a text.

I the question you linked to, the question regards dates the width of each of them is fixed; and where to place them within a column. This bug is about the alignment of different-width numbers relative to each other:

1
2
3
4
5
6
7
8
9
10

vs.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

the bottom is what we need, the top is what we have.