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`
Created attachment 196360 [details] Period has dropped to line below
Created attachment 196361 [details] Comma has dropped to line below
Seems related to these changes: https://wiki.documentfoundation.org/ReleaseNotes/24.2#New_line_break_algorithm_for_interoperability This ticket seems related: https://bugs.documentfoundation.org/show_bug.cgi?id=162084
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.
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.
(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.
(In reply to Kieran from comment #6) > I have been trying, but so far unable, to replicate the issue in a sample > file. Yes, this will be difficult to replicate with a brand new document. Probably the best would be to simply do what you did with the screenshot - delete everything except one paragraph that is giving you trouble (and which doesn't contain sensitive content). 24.8.3 is now released - if that still hasn't solved your problem, it will be very valuable to obtain a minimal reproducer.
(In reply to Justin L from comment #7) > (In reply to Kieran from comment #6) > > I have been trying, but so far unable, to replicate the issue in a sample > > file. > Yes, this will be difficult to replicate with a brand new document. Probably > the best would be to simply do what you did with the screenshot - delete > everything except one paragraph that is giving you trouble (and which > doesn't contain sensitive content). 24.8.3 is now released - if that still > hasn't solved your problem, it will be very valuable to obtain a minimal > reproducer. I am happy to report that whatever changed between 24.8.2.1 and 24.8.3.2 has fixed the issue with the periods wrapping on to the following lines. And a quick scan over some others docs looks like the output is much closer to MS Word now. Thank you. Keep up the great work :+1:
Fixed in 24.8.3.2