Issue 55978 - Need to search/replace carriage-return codes directly
Summary: Need to search/replace carriage-return codes directly
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: current
Hardware: All Windows XP
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-14 08:45 UTC by stiebler
Modified: 2013-02-07 22:36 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stiebler 2005-10-14 08:45:04 UTC
[Using OO2 RC2 Writer]

A lot of text found on the Internet contains sentences part-terminated by
carriage-return <CR> (as distinct from "\n"). I personally have to deal with
texts like this a lot. Example:

The cat sat on<CR>
the mat and ate<CR>
the rat. <CR>
<CR>
The cat later needed<CR>
a rabies shot.<CR>

What one would like to do is:
1. retain the <CR> between paragraphs.
2. replace all the other <CR> with spaces, to give:

The cat sat on the mat and ate the rat.<CR>
<CR>
The cat later needed a rabies shot.<CR>

This is easy in Microsoft Word - just search/replace <CR><CR> with <DUMMY>,
search/replace <CR> with <space> and search/replace <DUMMY> with <CR>.
If there is a work-around with Open Office Writer, then I have been completely
unable to fathom it. No amount of juggling with ^, $ and '.' appears to work
(regular expressions turned on). Microsoft Word allows actual detection of <CR>
with the command "^p". There seems to be no direct equivalent in OO Writer.
Comment 1 michael.ruess 2005-10-14 09:13:21 UTC
Reassigned to SBA.
Comment 2 stefan.baltzer 2006-02-07 13:04:35 UTC
SBA: Confirming issue.
Reassigned to requirements.
Comment 3 gmolleda 2009-08-27 15:48:06 UTC
Is it the same issue that 11982?

Now is possible search the manual <Enter> with simbol $ in the search box.

BUT is IMpossible replace the manual return with other character or erase it.

Example:
Text init<ENTER>
and finish.<ENTER>

Now go to Search/replace menu and press "Regular expressions".
Write in search: it$
write in replace: itaa

I hope:
Text initaaand finish.<ENTER>

But the result is:
Text initaa<ENTER>
and finish.<ENTER>

Is impossible erase the <Enter> manual.