Apache OpenOffice (AOO) Bugzilla – Issue 55978
Need to search/replace carriage-return codes directly
Last modified: 2013-02-07 22:36:31 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.
Reassigned to SBA.
SBA: Confirming issue. Reassigned to requirements.
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.