Bug 37494 - Find \n replace\n does NOT work (regular expressions work wrong in Impress)
Summary: Find \n replace\n does NOT work (regular expressions work wrong in Impress)
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
3.4.0 RC1
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 38261 Find-Search
  Show dependency treegraph
 
Reported: 2011-05-23 03:55 UTC by Martin Bartlett
Modified: 2019-01-17 14:05 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
source file to reproduce problem with find&replace (12.65 KB, application/vnd.oasis.opendocument.presentation)
2011-05-30 10:14 UTC, sasha.libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bartlett 2011-05-23 03:55:48 UTC
Specifically, from the find/replace reg ex help:

To change a line break into a paragraph break, enter \n in the Search for and Replace with boxes, and then perform a search and replace.

Firstly, this simply replaces every soft-linebreak with the literal "\n", secondly whatEVER you enter in the replace box seems to STILL replace every soft-linebreak with the literal "\n" after that.

Editing a PPT format file.

May seem minor but I have about 100 presentations of 5 or so slides each that all need this modification!!!

And yes I do have the "Regular Expressions" switch on.
Comment 1 sasha.libreoffice 2011-05-30 10:14:18 UTC
Created attachment 47329 [details]
source file to reproduce problem with find&replace

This problem reproduced on LibreOffice 3.4 rc1 on Mandriva 64 bit and Windows XP 32 bit
Steps to reproduce:
0. Open file from attachment
1. Do Edit -> Find&Replace
2. In dialog: in fields "Search for" and "Replace with" enter \n
3. in dialog press button More Options 
4. enable option "Regulag expressions"
5. Press button "Replace All"

Expected: no changes, all 3 lines remains
Actually: all lines becomes as 1 line with \n text inside

The same problem with \t in field "Replace with"
Comment 2 sasha.libreoffice 2011-05-30 10:18:22 UTC
In Writer it works properly
Comment 3 sasha.libreoffice 2011-05-30 10:22:11 UTC
In comment 1 appears strange links. I have not entered them:
>0. Open file from attachment
>1 [details]. Do Edit -> Find&Replace
Comment 4 Björn Michaelsen 2011-12-23 12:03:31 UTC Comment hidden (obsolete)
Comment 5 sasha.libreoffice 2011-12-26 00:34:25 UTC
reproduced on LibO 3.5.0 beta 1
Comment 6 QA Administrators 2015-07-18 17:43:21 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2015-10-17 13:46:48 UTC
Regex search has been disabled in Draw & Impress.
I could not find a report requesting it to be enabled.
Comment 8 QA Administrators 2017-10-23 14:08:05 UTC Comment hidden (obsolete, spam)
Comment 9 raal 2019-01-16 17:01:54 UTC
(In reply to Buovjaga from comment #7)
> Regex search has been disabled in Draw & Impress.
> I could not find a report requesting it to be enabled.

Hi Buovjaga, see bug 122764
Comment 10 Buovjaga 2019-01-17 14:05:26 UTC
(In reply to raal from comment #9)
> (In reply to Buovjaga from comment #7)
> > Regex search has been disabled in Draw & Impress.
> > I could not find a report requesting it to be enabled.
> 
> Hi Buovjaga, see bug 122764

Caolán explained that regexes should never have been visible in the first place. I created bug 122785 as enhancement request.

Closing this as invalid.