Bug 153170 - LibreOffice 7.4 can not programmatically delete paragraph breaks created by ENTER key.
Summary: LibreOffice 7.4 can not programmatically delete paragraph breaks created by E...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.4.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-23 20:20 UTC by Arnold
Modified: 2023-01-23 22:26 UTC (History)
2 users (show)

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 Arnold 2023-01-23 20:20:34 UTC
Description:
LibreOffice 7.4 can not programmatically delete paragraphs breaks created by ENTER key.

Editing a Writer document of 100 pages, created by another user. 
Every line has the pilcrow paragraph mark created by ENTER (not Shift-Enter). (An error in the other user's formatting technique)

The new behavior desired is to programmatically delete the pilcrow character/(ENTER)/break at the end of every line, and replace it with another printable character (or a single white-space). 

Need a way to programmatically use Find and Replace (opt-cmd-F on MAC) the the pilcrow paragraph mark.

There are no empty paragraphs. 
The pilcrow paragraph mark created by ENTER (similar to a double PP in reverse) is not a character. 
The pilcrow is non-printing, screen display only.
The pilcrow and display of other formatting marks can be turned on/off by cmd-f10 (MAC).
No regular expression is found related to the pilcrow (ENTER) mark.
The pilcrow character can not be selected with the cursor.
The line return represented by the pilcrow character, created by ENTER keys, can be deleted by positioning the cursor at the end of every line and depressing the 'delete' key. 
With a large document, manual formatting is arduous and time consuming.

Thank you very much!





Steps to Reproduce:
1. Using Find and Replace
2. Unable to replace returns/breaks
3.

Actual Results:
No known method.

Expected Results:
The new behavior desired is to programmatically delete the pilcrow character/(ENTER)/break at the end of every line, and replace it with another printable character (or a single white-space). 


Reproducible: Always


User Profile Reset: No

Additional Info:
gerrit.libreoffice.org / core / 85569322deea74ec9134968a29af2df5663baa21
Comment 1 Stéphane Guillou (stragu) 2023-01-23 22:26:39 UTC
A paragraph break can be matched with a the regular expression "$" (no quotes).
Go to the Find and Replace tool, tick "Regular expressions", search for "$" and replace with e.g. " ". That should work.

Tested with

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cd20a17ab703e97191b4e3421527267ef82a704f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

as well as 

Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded