[Libreoffice-bugs] [Bug 108256] EDITING: find/replace regular expressions: \n has 2 meanings, it shouldn't

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 1 16:00:49 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=108256

--- Comment #2 from akerblom at flopcat.org ---
2 have occurred just in my household:

1- my daughter wanted to cut and paste song lyrics into a story she was
writing, but in paragraph form.  So she needed to at the end of every line hand
delete the paragraph break and replace it with a space.  It was a very long
song.

2- I have hundreds/thousands of old emails from back when they were sent only
in plain text format.  When you would reply, the paragraphs would be
word-wrapped at 76 characters (or so) and on each new line a "> " would be
prepended.  We'd format new paragraphs by having 2 carriage returns. 
Preserving old emails into a document requires replacing all those single
carriage returns with spaces and the double carriage returns with single
carriage returns.  A lot of reformatting.

Basically - this is something you run into with reformatting text obtained from
elsewhere.  Also, it would be helpful for bringing text from or to a
spreadsheet format.

Clearly it is not a theoretical problem. In fact, a quick google search finds
complaints about this going back 5-6 years, with some painful workarounds. But
really this should just be in the already available find/replace feature. 
Noone should have to cut and paste thier LibreWriter doc into MSWord to be able
to replace on <CR>.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170601/4fc5e287/attachment.html>


More information about the Libreoffice-bugs mailing list