Bug 120294 - "Combine single line paragraphs" autocorrect option does not work in paragraph jump with <ENTER>
Summary: "Combine single line paragraphs" autocorrect option does not work in paragrap...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
Reported: 2018-10-03 19:55 UTC by Tonyab
Modified: 2019-10-27 09:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Video capture of the problem described in the first comment (3.66 MB, video/avi)
2018-10-04 12:18 UTC, Tonyab
Video in FLV format (9.81 MB, video/x-flv)
2018-10-04 13:41 UTC, Tonyab

Note You need to log in before you can comment on or make changes to this bug.
Description Tonyab 2018-10-03 19:55:57 UTC
This method (https://help.libreoffice.org/Writer/Removing_Line_Breaks) does not work correctly to remove line breaks after copying and pasting texts from other sources (PDF or WEB). It is much more practical and simple to select the text where we want to remove line breaks, selecting "Find & Replace", writing $ in the "Find" box and pressing the "Replace All" button. 

Steps to Reproduce:
1. Tools - AutoCorrect - AutoCorrect Options
2. Options tab, ensure that Combine single line paragraphs if length greater than 50% is selected, and then enter a new percentage. <OK>
3. In the Apply Style box on the Formatting bar, choose “Default”.
4. Format - AutoCorrect - Apply -> Wrong route, maybe it's Tools - AutoCorrect - Apply ... but does not work correctly to remove line breaks.

Actual Results:
Not work correctly to remove line breaks

Expected Results:
I expected the same thing that is done correctly with "Find & Replace" and the $ symbol in the "Find" box.

Reproducible: Always

User Profile Reset: No

Additional Info:
I have tried in all possible ways varying even the percentages from 0% to 100% in "Combine single line paragraphs if length greater than 50%" and it does not work.
Comment 1 Dieter 2018-10-04 09:34:42 UTC
I can't confirm it with

Version: (x64)
Build-ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group


Version: (x64)
Build ID: 48cfa0b00b22f11ade53aec79b2fdddad253e1bd
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-03_02:01:42
Locale: en-US (de_DE); Calc: CL

I used the steps from [1] but I can't see a difference to the steps from the oöd help.
[1] https://helponline.libreoffice.org/6.1/en-US/text/swriter/guide/removing_line_breaks.html?DbPAR=WRITER#bm_id3149687
Comment 2 Timur 2018-10-04 10:43:27 UTC
Report is that "Combine single line paragraphs if length greater than..." doesn't work. It seems to me that reporter is right. 
Dieter, what does it mean you can't confirm? If it works  for you please explain how and give example document. Or you understood it differently?
Comment 3 Tonyab 2018-10-04 12:18:03 UTC
Created attachment 145373 [details]
Video capture of the problem described in the first comment

I accompany a video capture where I first verify the possible failure following the instructions of "Removing Line Breaks" in https://help.libreoffice.org/Writer/Removing_Line_Breaks and how in the end I solve it with a trick of "Find & Replace" (I have lowered the quality of the recording I hope it is displayed well)
Comment 4 Dieter 2018-10-04 12:57:23 UTC
(In reply to Tonyab from comment #3)
> Created attachment 145373 [details]
> Video capture of the problem described in the first comment
I'm sorry, but I couldn't see anything in the video.

I couldn't reproduce it with 65%. I followed the steps from the online help
Comment 5 Tonyab 2018-10-04 13:41:47 UTC
Created attachment 145377 [details]
Video in FLV format

All right! I send you the video in FLV format. If you see it from your mobile it is possible that you need a video viewer like VLC. In principle from the computer I can view it in both formats.
Comment 6 Tonyab 2018-10-04 13:53:44 UTC
(In reply to Dieter Praas from comment #4)

I have tested from 0 to 100% in version and it does not work. I send you the video in FLV format attached in comment 5, I hope you can see it.
Comment 7 Dieter 2018-10-04 14:27:17 UTC
Thanks you for the video. Now I can see the difference.

I used line breaks (ctrl+enter) and not paragraph breaks.
Comment 8 Buovjaga 2018-10-26 17:24:07 UTC
The example in the video consists of changing the style of a block of text (with many short paragraphs) to Preformatted Text. With this I can repro even in 3.3.0.

Arch Linux 64-bit
Build ID: 9a373521d7a328197a4bf9abeb0a981b7acba896
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on 19 October 2018

Arch Linux 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 9 QA Administrators 2019-10-27 03:37:47 UTC Comment hidden (obsolete)
Comment 10 Tonyab 2019-10-27 08:36:06 UTC
The problem persists in any version of Libreoffice (including 6.4). I have verified that the problem is due to the paragraph jump with <ENTER>. 

It only works correctly in the case of inserting manual line breaks. But it doesn't work with spaces between paragraphs.

At the present time, the only solution is to search ($) and replace () with <Find & Replace>.


P.D.: Information from Help - About LibreOffice

Version: (x64)
Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; 
Locale: en-US (es_ES); UI-Language: en-US
Calc: threaded