Bug 131303 - Blank character inserted before caption category text in Sub-Documents shows up in Master Document indices
Summary: Blank character inserted before caption category text in Sub-Documents shows ...
Status: RESOLVED DUPLICATE of bug 131302
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.4.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-12 08:30 UTC by Erick
Modified: 2020-03-12 08:42 UTC (History)
0 users

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 Erick 2020-03-12 08:30:00 UTC
Description:
Adding a caption to an inserted image injects an unnecessary space in the index when it is generated. This is another difference between OpenOffice 4.6 and LO6.3 that can be overridden but is very annoying. If I insert an image and create a caption, for example a Map, I see the following in the index. This seems to be occurring when the caption is created since the extraneous character can be deleted later.

The spurious space or blank seems to be added during caption text creation. My belief is that in AOO the text, along with category header (e.g. Map # ...) is inserted before the space, so in that case the space ends up after the text and is of no harm. In LO the text is being appended to what ever text is there, that is after the character, causing the issue which appears in the index.

I myself can remove the character by going into the frame before the generated text (e.g. Map) and clicking a backspace to remove it. When one does so you will notice a slight re-adjustment in the frame, probably due to the affect of the character being removed. If I do, the spurious character no longer appears in the index. So, I am thinking caption text injection has a small bug that appends to what is currently in the frame, instead of inserting at location zero.

Steps to Reproduce:
1. In sub-document, insert an image
2. In sub-document, create a caption
3. Update master doc to pull in sub-document and create an index for specific item


Actual Results:
After the master document has pulled in the sub-document and regenerated its indices, note index for specific image or item has a spurious character in front of the category text.

Expected Results:
There should be no character injected before the category text in the indices.


Reproducible: Always


User Profile Reset: No



Additional Info:
I myself can remove the character by going into the frame before the generated text (e.g. Map) and clicking a backspace to remove it. When one does so, you will notice a slight re-adjustment in the frame, probably due to the affect of the character being removed. If I do, the spurious character no longer appears in the index.

My belief is that in AOO the text, along with category header (e.g. Map # ...) is inserted before the space, so in that case the space ends up after the text and is of no harm. In LO the text is being appended to what ever text is there, that is after the character, causing the issue which appears in the index.

Please contact me if you need a simple sample master and sub-doc to recreate the issue.
Comment 1 Mike Kaganski 2020-03-12 08:42:14 UTC

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