Bug 45597

Summary: FORMATTING: Wrong Paragraph Inserted with Direct Cursor in "Tab and spaces" mode
Product: LibreOffice Reporter: Harald Koester <harald.koester>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: sasha.libreoffice
Version: 3.3.4 release   
Hardware: All   
OS: All   
Whiteboard: BSA
i915 platform: i915 features:

Description Harald Koester 2012-02-03 08:45:23 UTC
In order to reproduce do:
[1] Open new text document.
[2] Enable viewing "Nonprinting Characters" in order to view the results of the following steps.
[3] Enable Direct Cursor (Tools > Options > LibreOffice Writer > Formatting Aids) and select "Tabs" (or "Tabs and spaces"). Then "OK".
[4] Move the mouse pointer over the document. The cursors follows the pointer and there is a little triangle at the right side of the cursor. Click somewhere into the document and a left-aligned paragraph is inserted with tabs (and spaces) up to the cursor position.
[5] Now move the mouse pointer slowly and horizontal exactly to the middle of the document. When you reach the middle, at both sides of the cursor little triangles are displayed. Stop here and click into the document. Now a centered paragraph is inserted !!!

Expected behaviour: At all positions a left-aligned paragraph should be inserted in the modes "Tabs" and "Tabs and spaces".

             
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.26) Gecko/20120128 Firefox/3.6.26
Comment 1 sasha.libreoffice 2012-03-16 08:10:34 UTC
Thanks for bugreport
But where is written that so should be? It is format optimization for direct cursor and cursor with double triangle indicates this.

May be needed additional option for disabling this optimization? Then this bug should be Functionality Request bug.
Comment 2 Harald Koester 2012-03-19 13:03:26 UTC
Hello Sasha,

I do not really understand, what you mean with format optimization. As far as I understood, the double triangle is used in the direct cursor mode "Paragraph alignment". There it indicates, that a centered paragraph will be inserted, if you click. In this mode the double triangle cursor works correctly as I expect it.

I talked about the direct cursor modes "Tabs" and "Tabs and Spaces". In the help these options are described as follows:

Mode Tabs: "When the direct cursor is used, as many tabs as necessary are added in the new paragraph until the clicked position is reached."

Mode Tabs and Spaces: "When the Direct Cursor is used, a corresponding number of tabs and spaces are inserted in the new paragraph as necessary until the clicked position is reached."

In these modes if you click in the right or left side of the page, always a left aligned paragraph with tabs (and spaces) up to the click position is inserted. But this does not work if you click exactly in the middle of a line (indicated with double triangle). In this case a centered paragraph is inserted. And no tabs (and no spaces) are inserted as described in the help text.

I think this behaviour is just only a little malfunction and it is not really important that it is solved. But it came across me and so I described it.

Harald
Comment 3 sasha.libreoffice 2012-03-20 03:22:44 UTC
Thanks for additional explanations. I mean that if cursor placed in middle of screen, "Centred" paragraph inserted and no need of tabs and spaces at all.
But this behaviour creates one problem: when some text inserted in "Centred" paragraph, beginning of text becomes to left of centre. It is not the thing we may want. From other hand, we already have option that creates automatically such paragraphs, "Paragraph alignment". Therefore for "Tabs" and "Tabs and spaces" options is no need for inserting Centred paragraph.

Reproduced in 3.3.4 and 3.5.1 on Fedora 64 bit
Changing version to 3.3.4 as most early reproducible 

Meanwhile, use "Left paragraph margin". It has no such problem, result of it not depends from font size and tabs size.
Comment 4 A (Andy) 2014-08-02 11:47:55 UTC
reproducible with LO 4.3.0.4 (Win 8.1)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.