Bug 162896 - [DOCX -> PDF] Justified text putting periods and commas on new line
Summary: [DOCX -> PDF] Justified text putting periods and commas on new line
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-10 00:05 UTC by Kieran
Modified: 2024-10-21 19:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Period has dropped to line below (42.97 KB, image/png)
2024-09-10 00:05 UTC, Kieran
Details
Comma has dropped to line below (35.07 KB, image/png)
2024-09-10 00:06 UTC, Kieran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kieran 2024-09-10 00:05:22 UTC
Description:
We run a SaaS platform for onboarding employees. We use Libreoffice to convert uploaded Docx files to PDF via command line. We recently upgraded LibreOffice from 7.6.7.2 to 24.8.0.3. After doing so, it appears that justified paragraphs that run right up to the right margin are wrapping the periods and semi-colons onto the next line, even though there is no space between them and the word that precedes it. Due to the nature of the documents, I can't upload any of them, but I will attach screenshots that highlight the issue.

Actual Results:
Periods and commas are wrapped to next line

Expected Results:
Periods and commas either stay on the line with the word, or the word and it's period/comma drop to the next line.


Reproducible: Always


User Profile Reset: No

Additional Info:
Issue occurs when converting from Docx to PDF via command line command:

`soffice --headless --convert-to pdf --outdir . test.docx`
Comment 1 Kieran 2024-09-10 00:05:56 UTC
Created attachment 196360 [details]
Period has dropped to line below
Comment 2 Kieran 2024-09-10 00:06:10 UTC
Created attachment 196361 [details]
Comma has dropped to line below
Comment 4 m_a_riosv 2024-09-10 14:50:57 UTC
Please attach a sample file, reduce the size as much as possible without private information, and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 5 Justin L 2024-10-18 14:05:45 UTC
24.8.0 is a "fresh" version for enthusiasts and bug-hunters. It has already been superseded by 24.8.1 and 24.8.2, and soon 24.8.3. Several "smart justify" bugs have been fixed recently - so please upgrade and test again.
Comment 6 Kieran 2024-10-21 19:19:58 UTC
(In reply to Justin L from comment #5)
> 24.8.0 is a "fresh" version for enthusiasts and bug-hunters. It has already
> been superseded by 24.8.1 and 24.8.2, and soon 24.8.3. Several "smart
> justify" bugs have been fixed recently - so please upgrade and test again.

The issue is still present in 24.8.2. I will test again when 24.8.3 comes out.

I have been trying, but so far unable, to replicate the issue in a sample file. The issue seems to occur with a specific amount of characters and perhaps the type of font being used, as I can't seen to replicate with a default font. I will keep trying to produce a sample file.