Bug 147846 - Left border line for characters is missing for the first character in ordered and unordered list paragraphs and paragraphs that start with a bookmark
Summary: Left border line for characters is missing for the first character in ordered...
Status: RESOLVED DUPLICATE of bug 99330
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-08 13:56 UTC by denebe
Modified: 2022-06-20 11:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample of issues, done with LO writer 7.3.3.2 (12.10 KB, application/vnd.oasis.opendocument.text)
2022-06-09 09:41 UTC, denebe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description denebe 2022-03-08 13:56:12 UTC
Description:
I want to frame characters with borders. But the line, that has these characters, begins with these characters.
If I do it, then a bar at the left side is missing.

Steps to Reproduce:
1.I have a line of text;
2.I select the first characters of this line (or a few words), by example I select 'Libreoffice is' in this line 'Libreoffice is a very good software…'
3.I select 'format' in the menu, then 'character'
4.I select full border
5.I valid.

Actual Results:
A bar is missing at the left side of the border:
 --------------
 Libreoffice is|
 --------------

Expected Results:
A full border (frame) around the selected text:
 --------------
|Libreoffice is|
 --------------


Reproducible: Always


User Profile Reset: Yes



Additional Info:
I bypass this issue with these steps:
1. I set the cursor at the beginning of the phrase, befor the 'L'.
2. I insert a space.
3. I delete this space, it works !

All the last version of Libreoffice writer, that I have used, have this issue. 7.1
7.2
7.3
Comment 1 Timur 2022-04-04 14:00:12 UTC
You may not set New yourself. Just wait.
I tried to reproduce and did once but not later.
Comment 2 denebe 2022-04-05 12:42:09 UTC
Sorry for the change of the status, I did not know. It is something new for me…

Regarding the issue, I tried today to cause this issue in a new Document, it works well (??). The next time I am encounter this issue, I will make a screenshot.

By the way, I encountered the issue with a list in a new document.
My screenshot is here: https://ibb.co/gDySydq
Actual result:
  ----
* Toto| is back.
  ----

Expected result:
   ----
* |Toto| is back.
   ----


Libreoffice Writer: 7.3.2.2
OS: Leap 15.3 (Opensuse)
Comment 3 denebe 2022-04-05 13:03:23 UTC
I have found something interesting.

The bookmark plays a role.

1) Without bookmark, the borders of the frame are correct.
 ----
|Toto| is back.
 ----

2) But if I make a bookmark before the letter 'T' of Toto, then it causes an issue and the result is:

 ----
 Toto| is back.
 ----

Screenshots:
https://ibb.co/qNRHbnc
https://ibb.co/WBTV3wn

Here with Libreoffice writer 7.2.5  and Leap 15.4 beta. The results are the same with Leap 15.3 and Libreoffice writer 7.3.2.

3) With a list, I have the issue. it is already described in my last message…

Summery: the lists and the bookmarks cause this issue.
Comment 4 manchette 2022-04-11 07:52:14 UTC
Hello,

i notice something similar : it does not work as expected all the time :
in a list i can set all four borders but if i add a bookmark then the left border is not shown as expected.


This is using Opensuse 15.4 and LibreOffice 7.2.5.1 20(Build:1)
Comment 5 manchette 2022-04-11 07:56:28 UTC Comment hidden (obsolete)
Comment 6 Timur 2022-06-06 11:12:59 UTC
Please attach sample ODT with good and bad behavior.
Comment 7 denebe 2022-06-09 09:41:33 UTC
Created attachment 180649 [details]
Sample of issues, done with LO writer 7.3.3.2

The issue appears with a list, or with a bookmark.

The frame must be around characters and at the begin of the line.
Comment 8 sdc.blanco 2022-06-09 10:12:13 UTC
Good analysis denebe.

1. Repro that if the first character in an unordered or ordered list has a border, then the left edge of the border is not displayed.

(Additional information: 

A.  Change the test example from "unordered" list to "ordered" list.
Appears as:

 -  ----
|1  Toto| is back.
 -  ----

which suggests that the border is also being applied to the List label.

B. An empty unordered paragraph appears as:

----
|1.|
----

C. An unnumbered list entry appears correctly with border


2.  Repro that if a bookmark is added starting at the first character of characters with borders, then the left edge of the border does not appear.

No problem when adding a bookmark after the first character.

Tested with:

Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: bbec710bd25fc5da27636cde73fe4ab23c76904f
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win

Will leave "Status" change to others...
Comment 9 phv 2022-06-19 15:43:03 UTC
Added bug #149517 in See also bug list because whether it is a bookmark or an index/table of content reference, the mechanism is the same and leads to the same result: the character style is modified and should not be.
Comment 10 sdc.blanco 2022-06-20 11:13:13 UTC
This bug report appears to be a duplicate of bug 99330.  If anyone disagrees, then of course undo it.

*** This bug has been marked as a duplicate of bug 99330 ***