Bug 52599 - Centered text first line not centered
Summary: Centered text first line not centered
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 19:36 UTC by Dave Bnm
Modified: 2013-12-12 15:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example of Center Text command not properly centering text. (19.09 KB, application/vnd.oasis.opendocument.text)
2012-07-28 15:37 UTC, Dave Bnm
Details
attachment-29453-0.html (3.66 KB, text/html)
2013-05-27 18:37 UTC, Dave Bnm
Details
attachment-29453-1.dat (1 bytes, multipart/alternative)
2013-05-27 18:37 UTC, Dave Bnm
Details
1stLineOffCenterBug.odt (18.90 KB, application/vnd.oasis.opendocument.text)
2013-05-27 18:37 UTC, Dave Bnm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Bnm 2012-07-27 19:36:04 UTC
If text is formatted as centered and the underlying style has an indent set before or after, or First line indent, or (most likely) an automatic indent (any or all of these on paragraph style tab Indents and Spacing) then the centered lines are offset by the amount of such indent(s), as these are taken as part of the line, leaving the visual content to read wrongly.

I can't imagine any situation where anyone would want the first line of centered text to be slightly off center.

The text-centering subroutine should automatically nullify first-line-indent settings for whatever paragraph style or text style is active for as long as centered text is invoked.
Comment 1 Rainer Bielefeld Retired 2012-07-28 09:53:51 UTC
So many and-if-or-maybe, I have no idea what the problem might be

@Dave Bnm:
Please:
- Write a meaningful Summary describing exactly what the problem is
- Attach a sample document (not only screenshot) or refer to an existing 
  sample document in an other Bug with a link; to attach a file to this 
  bug report, just click on "Add an attachment" right on this page.
- Attach screenshots with comments if you believe that that might explain the 
  problem better than a text comment. Best way is to insert your screenshots
  into a DRAW document and to add comments that explain what you want to show
- Contribute a document related step by step instruction containing every 
  key press and every mouse click how to reproduce your problem 
  (similar to example in Bug 43431)
– if possible contribute an instruction how to create a sample document 
  from the scratch
- add information 
  -- Why you use a paragraph formatting what is inappropriate for your needs
  -- what EXACTLY is unexpected 
  -- and WHY do you believe it's unexpected (cite Help or Documentation!)
  -- concerning your OS (Version, Distribution, Language)
  -- concerning your LibO localization (UI language, Locale setting)
  -- everything else crossing your mind after you read linked texts
Comment 2 Urmas 2012-07-28 12:39:35 UTC
What is the Word 2010 behavior in this aspect?
Comment 3 Dave Bnm 2012-07-28 15:37:14 UTC
Created attachment 64824 [details]
Example of Center Text command not properly centering text.

Notice that the centered text using applied styles has the first line off center.

The lines in smaller point type at the end (and in English) don't exhibit the problem.
Comment 4 Dave Bnm 2012-07-28 16:31:42 UTC
A document was sent to me that was created in Microsoft Word and I was asked to edit it (I expanded it about 6-fold, not that that's pertinent).

The heading of the original document included centered text with different lines using different text styles and different point sizes--and, yes, all of it was properly centered.

When I edited the document, the first line of each centered paragraph was offset to the left by about the amount of an indent.

Please see the attachment.


Q  -- Why you use a paragraph formatting, what is inappropriate for your needs?
A  -- I was aligning text to center.  The first line of that text was not centered.

Q  -- What EXACTLY is unexpected?
A  -- The first line of text in center-aligned text to be shifted right or left by about the distance of the text style's indent setting. 

Q  -- and WHY do you believe it's unexpected? (cite Help or Documentation!)
A  -- There is no conceivable benefit.  I would expect a centering feature to override/ignore the indent setting on a text style. I checked Help and there is no indication that the first line might not be centered.

Q  -- concerning your OS (Version, Distribution, Language)
A  -- Ubuntu 12.04, LibreOffice 3 Writer 3.5.3.2 Build ID:350m1 (Build:2)

Q  -- concerning your LibO localization (UI language, Locale setting)
A  -- Not sure what you're asking, but I have the OS installation set to American English as well as any settings I encountered installing LibreOffice (I've double-checked that recently thinking I may have something set wrong as my spell check corrects to British English--"colour" instead of "color" and "centre" instead of "center".  The time zone is set to eastern time US)

Q  -- everything else crossing your mind after you read linked texts
A  -- The spell-check issue happens system wide, not just in LibreOffice. If I think of anything else, I'll ring your cell.
Comment 5 Dave Bnm 2012-07-28 16:34:55 UTC
I should add that if I select a text style, indicate that what I am about to type is to be centered and start typing, the first line will be off center.  This doesn't just happen when highlighting an already-written paragraph and telling it to center-align.
Comment 6 QA Administrators 2013-05-27 16:54:40 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 7 Dave Bnm 2013-05-27 18:37:19 UTC
Created attachment 79860 [details]
attachment-29453-0.html

Find attached a file that exhibits the problem. You will see the problem twice 
in this document.

 
-David Bnm



________________________________
From: "bugzilla-daemon@freedesktop.org" <bugzilla-daemon@freedesktop.org>
To: dperich@sbcglobal.net
Sent: Mon, May 27, 2013 12:54:44 PM
Subject: [Bug 52599] Centered text first line not centered

 QA Administrators  changed bug 52599 

What
Removed
Added
QA Contact    qa-admin@libreoffice.org  
Comment # 6 on bug 52599 from QA Administrators  
Dear Bug Submitter,  This bug has been in NEEDINFO status with no change for at 
least 6 months. Please provide the requested information as soon as possible and 
mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug 
is still in NEEDINFO status with no change in 30 days the QA team will close the 
bug as INVALID due to lack of needed information.  For more information about 
our NEEDINFO policy please read the wiki located here:  
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO  If you have already 
provided the requested information, please mark the bug as UNCONFIRMED so that 
the QA team knows that the bug is ready to be confirmed.   Thank you for helping 
us make LibreOffice even better for everyone!   Warm Regards, QA Team
________________________________
 You are receiving this mail because: 
	* You reported the bug.
Comment 8 Dave Bnm 2013-05-27 18:37:20 UTC
Created attachment 79861 [details]
attachment-29453-1.dat
Comment 9 Dave Bnm 2013-05-27 18:37:20 UTC
Created attachment 79862 [details]
1stLineOffCenterBug.odt
Comment 10 Joel Madero 2013-05-27 18:48:08 UTC
In the future please try to read the instructions closely - the bug needs to be marked as UNCONFIRMED - else the QA team will not look at it.


Thanks for the additional info
Comment 11 Dave Bnm 2013-05-27 22:06:11 UTC
Ok.
Now you're just confusing me.  I've given a description of the problem in as 
many ways as I can, as discretely and as concisely as I can.  I don't understand 
what I need to do to affect "UCONFIRMED" status.  


All I know is, I start out with text like this:

Line A Line A Line A Line A Line A
Line B Line B Line B Line B Line B
Line C Line C Line C Line C Line C 
Line D Line D Line D Line D Line D

Then I highlighted the lines and clicked the center text icon.
But instead of this (what I was expecting):


Line A Line A Line A Line A Line A
Line B Line B Line B Line B Line B
Line C Line C Line C Line C Line C 
Line D Line D Line D Line D Line D


I unexpectedly got this:


Line A Line A Line A Line A Line A     
        Line B Line B Line B Line B Line B
        Line C Line C Line C Line C Line C
        Line D Line D Line D Line D Line D


As you can see, Line A is not centered above lines B, C and D
The above is a visual representation only, accomplished using the space bar. It 
is not the actual problem I experienced.
The original document was created in MS Word, sent to me, imported into Libre 
Office and then the problem happened.  I no longer have the original.  I did 
send a Libre Word file (the one with MS's phony Latin) that contained the REAL 
problem.

If y'all can't affect the UNCONFIRMED status without my assistance, I don't 
believe I can help at this point.  Sorry.

 
-David 

 

________________________________
  "How a politician stands on the Second Amendment tells you how he or she views 
you as an individual... as a trustworthy and productive citizen, or as part of 
an unruly crowd that needs to be lorded over, controlled, supervised, and taken 
care of." 

--Former Texas State Rep. Suzanna Gratia-Hupp




________________________________
From: "bugzilla-daemon@freedesktop.org" <bugzilla-daemon@freedesktop.org>
To: dperich@sbcglobal.net
Sent: Mon, May 27, 2013 2:48:10 PM
Subject: [Bug 52599] Centered text first line not centered

 Joel Madero  changed bug 52599 

What
Removed
Added
Status NEEDINFO  UNCONFIRMED  
CC    jmadero.dev@gmail.com  
Ever confirmed 1     
Comment # 10 on bug 52599 from Joel Madero  
In the future please try to read the instructions closely - the bug needs to be 
marked as UNCONFIRMED - else the QA team will not look at it.   Thanks for the 
additional info
________________________________
 You are receiving this mail because: 
	* You reported the bug.
Comment 12 Kevin Suo 2013-06-27 10:09:01 UTC
I believe this is not a bug.

The reason your first line is not centred is that,

* The first and the second paragraph were applied "Title 3" style. For the default "Title 3" style, "before text" indent of 0.76cm and "first line" indent of -0.76cm were applied.

* The first and the second paragraph were also applied some "direct formatting" with "before text" indent 1.27cm and "first line" -1.27cm.

* When the first line is negative indent (-1.27cm for your case) and there is no outline numbering, the first line is surely indent left, for your case, 1.27cm left from the center position.

Change both "before text" and "first line" indent to 0 fix your issue. So this is not a bug.