Bug 163039 - Footnote reference sometimes falls into the next line in a justified paragraph
Summary: Footnote reference sometimes falls into the next line in a justified paragraph
Status: RESOLVED DUPLICATE of bug 163060
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Paragraph
  Show dependency treegraph
 
Reported: 2024-09-19 09:30 UTC by Hossein
Modified: 2024-10-18 06:08 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Footnote reference falls into the next line (ODT) (14.83 KB, application/vnd.oasis.opendocument.text)
2024-09-19 09:30 UTC, Hossein
Details
Footnote reference is lost after 7a78be5090 (ODT) (15.02 KB, application/vnd.oasis.opendocument.text)
2024-09-26 09:43 UTC, Hossein
Details
Footnote reference in the next line, before 7a78be5090 (PDF) (32.36 KB, application/pdf)
2024-09-26 09:45 UTC, Hossein
Details
Footnote reference gets lost, after 7a78be5090 (PDF) (15.02 KB, application/vnd.oasis.opendocument.text)
2024-09-26 09:46 UTC, Hossein
Details
Footnote reference gets lost, after 7a78be5090 (PDF) (32.24 KB, application/pdf)
2024-09-26 09:48 UTC, Hossein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2024-09-19 09:30:45 UTC
Created attachment 196534 [details]
Footnote reference falls into the next line (ODT)

Description:
Sometimes footnotes reference falls into the next line in a justified paragraph.

Steps to Reproduce:
1. Open attachment

Actual Results:
When using full justified for a paragraph, sometimes footnote number falls into the beginning of the next line, which is not desirable. This should not happen, as it is hard to follow the footnote.

Expected Results:
Footnote reference should remain in the last part of the line. It should be noted that the problem does not happen with right or left alignment. 

Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Hossein 2024-09-19 09:49:28 UTC
Also reproduced in OOo 3.2.1 with slight modifications in text:

OpenOffice.org 3.2.1
OOO320m18 (Build:9502)

Not reproducible in MS Word.
Even a slight change in the text by increasing the character size can lead to either move the footnote and the word before it to the next line, or keep both in the previous line. In any case, both the word and the footnote reference will be in the same line together.
Comment 2 Hossein 2024-09-26 09:43:13 UTC
Created attachment 196708 [details]
Footnote reference is lost after 7a78be5090 (ODT)

The behavior seems to be changed in this recent patch:

commit 7a78be5090d2dabf03e18471ba718f2c4f25f740
Author:     László Németh
AuthorDate: Wed Sep 25 22:45:05 2024 +0200

tdf#163060 sw smart justify: fix unwanted line break inside words

But now the problem is that in some cases, the footnote reference gets lost. By adding some space to line 1 to the first bugdoc, you may see the problem. The result can be seen in the new attachment.
Comment 3 Hossein 2024-09-26 09:44:06 UTC
@László: Could you please take a look at the above issue?
Comment 4 Hossein 2024-09-26 09:45:34 UTC
Created attachment 196709 [details]
Footnote reference in the next line, before 7a78be5090 (PDF)

Footnote falls into the next line, as this bug reports. The PDF output is created with the LO 25.2 dev master, from one commit before 7a78be5090.
Comment 5 Hossein 2024-09-26 09:46:58 UTC Comment hidden (obsolete)
Comment 6 Hossein 2024-09-26 09:48:08 UTC
Created attachment 196711 [details]
Footnote reference gets lost, after 7a78be5090 (PDF)

Footnote reference now gets lost. The PDF output is created with the LO 25.2 dev master, with commit 7a78be5090.
Comment 7 László Németh 2024-09-27 23:25:30 UTC
@Hossein: thanks for the bug report! Assigned to me. I've added it to the DOCX-Paragraph meta bug, because recently this occurs only with opening a DOCX file (and saving it to ODT).
Comment 8 László Németh 2024-10-18 06:08:09 UTC
Fixed in Bug 163060.

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