[Upstream] Numbering mis-indents in LibreOffice Writer

Bug #831305 reported by Satchit Bhogle
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Medium
libreoffice (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

1) lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.4.4-0ubuntu1
  Candidate: 1:3.4.4-0ubuntu1
  Version table:
 *** 1:3.4.4-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:3.4.3-3ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

3) What is expected to happen in a blank LibreOffice Writer document click Format -> Bullets and Numbering... -> Uppercase Roman Numerals -> OK button -> repeat:

type test -> click Enter button

and the space between the text and roman numeral is consistent as in Word screenshot https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/831305/+attachment/2654242/+files/word-screenshot.png .

4) What happens instead is a tab is inserted unnecessarily between the text and the roman numeral https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/831305/+attachment/2654241/+files/lo-screenshot.png .

Original Reporter Comments:
OS: Ubuntu 11.04 Natty Narwhal stable
Application: LibreOffice 3.3.3
OOO330m19 (Build:301)
tag libreoffice-3.3.3.1, Ubuntu package 1:3.3.3-1ubuntu2
Writer (installed via PPA)

Revision history for this message
penalvch (penalvch) wrote :

Satchit Bhogle, thank you for reporting this and helping make Ubuntu better. Regarding your comments:

> Firstly, when using numbering of the style (i), (ii), (iii) etc, the indentations are wrong. The third line (and often the fourth and sixth) always has a greater indentation than the other lines. The numbers are aligned vertically, but the text is not. It is approximately one TAB further. This error does not manifest itself with other numbering styles such as 1., 2., 3. or a), b), c) etc.

Are you referring to how the lowercase roman numerals are not right justified as they are in Excel? LibreOffice Writer shows:

i.
ii.
iii.

while Excel shows:
bug
  i.
 ii.
iii.

> Secondly, when typing "a.", "(a)" or "a)" (without quotes), typing some text and then hitting Enter, the next line does not become "b.", "(b)" or "b)" respectively. Correct numbering can be performed by using another numbering style and then changing it via the Bullets and Numbering toolbar, but it is an inelebug gant solution. All other common numbering styles work fine, though the options in the Bullets and Numbering toolbar do not include such common styles as a., b., c. and (i), (ii), (iii) etc.

Please do not stack multiple issues into one bug. This bug will focus on the first issue mentioned. Each unique issue should be placed into their own separate bug. Thank you for your understanding.

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Satchit Bhogle (satchitb) wrote :

No, I do not refer to right justified numerals. I refer to an inexplicable space between the numbering (i, ii, iii, etc) and the beginning of the text. See attached screenshot (and forgive the amateurish arrows). Increasing or decreasing the indentation pushes both the numeral and the text.

Revision history for this message
penalvch (penalvch) wrote :

Satchit Bhogle, could you please attach the document that was in the screenshot?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libreoffice (Ubuntu) because there has been no activity for 60 days.]

Changed in libreoffice (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Jmadero (jmadero) wrote :

I can confirm this problem and I can say it has been a headache since OpenOffice 2 or prior. Auto bullets is almost useless in LibreOffice/OpenOffice because of this bug. I have attached my document showing the same exact thing.

You can see that on Page 4 there is a very big extra gap for roman numeral III, roman numerals I & II look fine but then there is a gap for 3 and as the original bug report stated, there is intermitant problems with tabbing/spaces from this point on. I am trying to add an attachment but launchpad is rejecting it (stating not found despite me clicking on it in the browser that pops up when I click on attachment)....not sure what's going on with launchpad. I can email the example if needed

Changed in libreoffice (Ubuntu):
status: Expired → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

No attachment.

Changed in libreoffice (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
In , lVWy2QVhieXLsi (fshmuxibpmsioz) wrote :

Created attachment 53370
PDF example of alignment problem

When creating an ordered list through the Numbering option (F12), I then choose to change the ordering to the third from the left option in the Bullets and Numbering configuration box, under the Outline tab. This option creates the ordered list with indentations as follows: 1. (a) i. A., etc.

When using this Outline option for an ordered list, after reaching the 10th ordered list item, the text shifts to the right with an extra tab, resulting in misaligned text for any item in the ordered list with the number 10 or above. An example is attached.

I've confirmed this behavior in the Windows version and the Linux x64 version.

Revision history for this message
Jmadero (jmadero) wrote :

Attached is displaying bug, I am currently trying to track it down in the source, I'll report if I am able to find it and hopefully patch it

Changed in libreoffice (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jmadero (jmadero) wrote :

Interesting thing is I just opened it in MS Office on a work computer and it looks fine so if you're going to verify that it's a bug make sure to open it with LibreOffice or OOo not MS Office 2007 +

Revision history for this message
penalvch (penalvch) wrote :
Revision history for this message
penalvch (penalvch) wrote :
Revision history for this message
penalvch (penalvch) wrote :

Satchit Bhogle, the issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at http://wiki.documentfoundation.org/BugReport . If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

description: updated
Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in df-libreoffice:
status: New → Incomplete
Revision history for this message
In , Satchit Bhogle (satchitb) wrote :

1) lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.4.4-0ubuntu1
  Candidate: 1:3.4.4-0ubuntu1
  Version table:
 *** 1:3.4.4-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:3.4.3-3ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

Also seen in 3.4.5 final.

3) What is expected to happen in a blank LibreOffice Writer document click Format -> Bullets and Numbering... -> Uppercase Roman Numerals -> OK button -> repeat:

type test -> click Enter button

and the space between the text and roman numeral is consistent as in Word screenshot https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/831305/+attachment/2654242/+files/word-screenshot.png .

4) What happens instead is a tab is inserted unnecessarily between the text and the roman numeral https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/831305/+attachment/2654241/+files/lo-screenshot.png .

Firstly, when using numbering of the style (i), (ii), (iii) etc, the indentations are wrong. The third line (and often the fourth and sixth) always has a greater indentation than the other lines. The numbers are aligned vertically, but the text is not. It is approximately one TAB further. This error does not manifest itself with other numbering styles such as 1., 2., 3. or a), b), c) etc.

Revision history for this message
Satchit Bhogle (satchitb) wrote :

Hopefully, this will link to the upstream Bugzilla bug. An incomplete bug was filed by another user, to which I've appended the rather more extensive data.

Changed in df-libreoffice:
importance: Undecided → Unknown
status: Incomplete → Unknown
Revision history for this message
Satchit Bhogle (satchitb) wrote :

Ok, that didn't work. I'm not sure how to do it, though the bug number in Bugzilla is mentioned at the top of the page.

penalvch (penalvch)
summary: - errors in indentation while numbering in libreoffice writer
+ [Upstream] Numbering mis-indents in LibreOffice Writer
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Dawrah00 (dawrah00) wrote :

Hello,
I can reproduce this bug with LibreOffice 3.4.3 on Mac OSX.6.8
It happens only for numbers greater than 9.
Here is a screenshot : http://i.imgur.com/g8aJ6.png

Regards,
~Jim

penalvch (penalvch)
tags: added: i386 lo33 natty oneiric
Revision history for this message
In , Dawrah00 (dawrah00) wrote :

Hello,

This bug is still present on 3.5.5.3 on Mac OS X 10.6.8.
To overcome it, you can slide the slider on top of the document, this will realign the list item.

Revision history for this message
In , Jack Leigh (leighman) wrote :

Created attachment 65277
Numbered list roman numerals

This is perhaps most obvious with roman numerals

Revision history for this message
In , Jack Leigh (leighman) wrote :

*** Bug 48475 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jack Leigh (leighman) wrote :

*** Bug 50624 has been marked as a duplicate of this bug. ***

Revision history for this message
Bernardo Ossandon (calamulus) wrote :

This is probably not so much a bug as it is a poor default in (and understanding of the workings of) the numbering styles. On the Bullets and Numbering menu, AFTER you select the roman numerals option (or your affected one), go to the Position tab. There you can see that the default character that follows the numeral is a Tab Stop for "proper" alignment, BUT the numeral is left-aligned. This of course causes some text to shift one tab stop to the right if their numeral is bit longer than the rest, as it goes past the "first" tab stop.

If you change the Number Alignment to Right, you'll probably get the expected behaviour, at least with the roman numerals. You can also increase said Tab Stop position/distance which may be a bit small by default, to give the numerals a little more headroom to work on.

Cheers!

Revision history for this message
In , Cno (cno) wrote :

*** Bug 65440 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Cno (cno) wrote :

from duplicate 65440:

  " It's a problem that is caused by the default indent, linked to specific bullet/numbering types. With latin numbering the problem often starts with 10 or so.
So you can change it by setting the indent for the various levels on the tab Position....
However, of course you want this to work fine out of the box, I guess ;) "

Setting version to 330 - inherritted from OOo

Bit more words in Summary ;)

Mark as ProposedEasyHack

what more :) ?

Revision history for this message
Robertjm (robertjm) wrote :

Using LibreOffice Version 4.0.4.2 and the problem is still present.

I realize this is a simple "fix" (i.e.: workaround) but why not simply change the "Numbering Followed By" setting from "Tab-Stop" to "Nothing" as the default?

An alternative would be to set the default font to a monospaced font, though that's a bit more draconian to fix this one issue.

Revision history for this message
In , Cno (cno) wrote :

*** Bug 67678 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Cno (cno) wrote :

*** Bug 70297 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Qubit (qubit) wrote :

Whiteboard: proposedEasyHack -> ProposedEasyHack

Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

easyhackify

Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

Created attachment 91509
rough patch/codepointer

attached patch should give a rough starting point on this. The patch moves the default tabstop one inch to the right, which is obviously too much. Should be enough of a starting point though.

Revision history for this message
In , Donghan1992 (donghan1992) wrote :

The bug does not appear in LibreOffice 4.1 and 4.3alpha on Linux

Revision history for this message
In , Foss-4 (foss-4) wrote :

Hm, I still see this problem when opening the "numbered list roman numberal" test file with 4.2.0.2

Confirmed:4.2.0.2:OSX

VII. and VIII. are further to the right than the rest. From what I understand that is what is being reported here as bug.

Revision history for this message
In , valeriodean (valeriodean) wrote :

Created attachment 92653
This is how MS works about roman numbering list

Revision history for this message
In , valeriodean (valeriodean) wrote :

Hi all,
I'm looking at this bug as my first easy hack.
I start to check how MS Office work about the same problem, and I found that MS use a different approach, as showed in the attached pictures.
I guess the real problem here is how to manage the space taken for the roman number when it start to increase for very long list.
We need to be able to manage a long list case where the first line have only one singol character as bullet char, whereas the last line can have 8 char (i.e. LXXXVIII).

How MS works: it uses the space between the bullet char and the text as a referement point, then the bullet char string is aligned to the right and the text is aligned to the left (see attached picture).
In that way, however, the char string can go out of the page margin.

How LO works: looks like all element are aligned to the first char of the bullet string.
In that way the bullet string are aligned through the list but the rest are not.
Actualy the space between the separator char and the user's text change depending to the bullet string lengh, producing a bad look.

Proposal:
Use a fixed offset applied after the separator char, ignoring the identation aligment of the user's text respect to the previuos and the subsequent bullet point.
The space taken by the bullet string can increae but the space between the separator char and the user's text will be always the same and big enough to make the text beautiful.

NOTE:
this would be my first hack in LO and my first try with C++ language, so I hesitate a bit to assign it to me, maybe there is someone more capable than me that could work on this one.

Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

adding LibreOffice developer list as CC to unresolved Writer EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details

Revision history for this message
In , Jflory7 (jflory7) wrote :

I would just like to confirm that this is still an issue in 4.4.5.2-5.fc22 stable of LibreOffice Writer. I am running Fedora 22, Linux 4.1.6-200, and the indention on outlines still has an extra indention sometimes, usually on the top line of the list (i.e. the primary numbering count, if that makes sense).

This has been an issue that has been present for quite some time, and I think it would help increase the graphic appeal of the program for users… professors have questioned why my numbering system is off when I hand in assignments with outlines using LibreOffice Writer. ;P

I have / will attach an ODT that demonstrates this problem as well.

Revision history for this message
In , Jflory7 (jflory7) wrote :

Created attachment 118556
Roman Numeral Outline Example, 4.4.5.2 stable Linux

Testcase of bug explained in bug report, present in 4.4.5.2 stable for Linux.

Revision history for this message
In , Qubit (qubit) wrote :

Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillCpp )
[NinjaEdit]

Revision history for this message
In , Noseeba1 (noseeba1) wrote :

Hi all,

I changed the default numbering alignment of the Roman(upper/ lower) numbers list to the right instead of left. Moreover, this will not affect the other list types default settings. Also, numbering alignment can be changed by the user and any new list created will not be affected by the user choice (using the default settings for the new list).

I submitted a patch you can check it:

https://gerrit.libreoffice.org/#/c/21439/

thanks
Nusaiba

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Nusaiba Al-Kindi committed a patch related to this issue.
It has been pushed to "master":

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

tdf#42788: FORMATTING - Numbering/ordered list

It will be available in 5.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.

Revision history for this message
In , penalvch (penalvch) wrote :

Fixed in:
Version: 5.2.0.0.alpha0+
Build ID: 3fc292f7b32f30b98dad208eb03e086b927d38a2
CPU Threads: 2; OS Version: Windows 6.19; UI Render: default;
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-22_23:56:18
Locale: en-US (en_US)

Changed in df-libreoffice:
status: Confirmed → Fix Released
penalvch (penalvch)
tags: added: xenial
Revision history for this message
In , Qubit (qubit) wrote :

Remove LibreOffice Dev List from CC on EasyHacks
(curtailing excessive email to list)
[NinjaEdit]

Revision history for this message
In , Jani-z (jani-z) wrote :

It turns out the fix, created other problems, please look at the notes on the gerrit.

Revision history for this message
In , penalvch (penalvch) wrote :

jan iversen, could you please post the direct URL of the notes of the gerrit you are referring to (versus make folks dumpster dive for it via a search engine, etc.)?

There is nothing in https://cgit.freedesktop.org/libreoffice/core/commit/?id=6517141b6233c5f9667031bc92f66109fddf5b76 that discusses any regression potential, or side effects.

Also, given the scope of this report is confirmed fixed, I'm not sure what the value is in reopening it. Instead, it may be better to open a net new report, reporting in detail any confirmed or potential regression.

Also, please mark yourself CC on reports you make comments to, so you get any follow up emails that requests a response.

Thanks!

Revision history for this message
In , Jani-z (jani-z) wrote :

(In reply to Christopher M. Penalver from comment #27)
> jan iversen, could you please post the direct URL of the notes of the gerrit
> you are referring to (versus make folks dumpster dive for it via a search
> engine, etc.)?
Not a bad idea, will have to dig it out.
>
> There is nothing in
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=6517141b6233c5f9667031bc92f66109fddf5b76 that discusses any regression
> potential, or side effects.
>
> Also, given the scope of this report is confirmed fixed, I'm not sure what
> the value is in reopening it. Instead, it may be better to open a net new
> report, reporting in detail any confirmed or potential regression.
>
Well if you revert a change (that you committed) it seems natural to reopen the bug as well.

Opening a new bug with the same text can of course be done.

Please be aware that I (among others) confirmed it fixed, and was later made aware that this patch caused problems with higher indent levels. It was the hope that the author of the patch would submit a fix, but with a new release candicate due next week, a revert was needed.

> Also, please mark yourself CC on reports you make comments to, so you get
> any follow up emails that requests a response.

Now why would I do that ? I get mail on these issues already. You might not have noted it, but all easyhacks was changed a while ago, so I get CC from all of them instead of filling up the dev list.

rgds
jan i.

>
> Thanks!

Revision history for this message
In , penalvch (penalvch) wrote :

(In reply to jan iversen from comment #28)
> (In reply to Christopher M. Penalver from comment #27)
> > jan iversen, could you please post the direct URL of the notes of the gerrit
> > you are referring to (versus make folks dumpster dive for it via a search
> > engine, etc.)?
> Not a bad idea, will have to dig it out.

If it is more convenient, would you have the revert commit URL instead?

> >
> > There is nothing in
> > https://cgit.freedesktop.org/libreoffice/core/commit/
> > ?id=6517141b6233c5f9667031bc92f66109fddf5b76 that discusses any regression
> > potential, or side effects.
> >
> > Also, given the scope of this report is confirmed fixed, I'm not sure what
> > the value is in reopening it. Instead, it may be better to open a net new
> > report, reporting in detail any confirmed or potential regression.
> >
> Well if you revert a change (that you committed) it seems natural to reopen
> the bug as well.
>
> Opening a new bug with the same text can of course be done.

Whatever makes sense here is fine with me (especially since the commit was reverted).

> > Also, please mark yourself CC on reports you make comments to, so you get
> > any follow up emails that requests a response.
>
> Now why would I do that ? I get mail on these issues already. You might not
> have noted it, but all easyhacks was changed a while ago, so I get CC from
> all of them instead of filling up the dev list.

This is another request to please stop making people dumpster dive for information. Nobody except for a few know that, and expecting others to either know this, or dumpster dive for this, is putting an unnecessary onus on others.

> rgds
> jan i.
>
>
> >
> > Thanks!

Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.