Re: [libreoffice-users] stripping crlf
On 03-01-2024 20:18, Brian Barker wrote: At 11:08 03/01/2024 -0500, Bill Drescher wrote: What can I use to replace the line break with a space? Just "$" (no quotes), it seems. Another thought: consider using Paste Special (instead of ordinary Paste) and "Unformatted text" when inserting text from elsewhere. This avoids some problems. In addition, "$" is a regex, use regular expressions check box. In case of a normal paste operation, because you want to preserve hyperlinks for example, you may want to remove formatting, i.e. select and ctrl-m. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ Privacy Policy: https://www.documentfoundation.org/privacy
Re: [libreoffice-users] stripping crlf
At 11:08 03/01/2024 -0500, Bill Drescher wrote: I have a document that I copied from the original on the web (legally). Now I need to modify it using LO. The document has hard line breaks that I want to remove. The first thing to do is to understand what you are handling here. Calling these "hard line breaks" (or, even worse, "crlf" - as you have in your Subject header) is unhelpful, as what I assume you have here is what in a word processor are *paragraph breaks*. Using the find and replace form I can not figure out how to indicate a line break. It's generally necessary to think in terms of the paragraphs themselves, rather than breaks. (But perhaps not here ...) With "Regular Expressions" selected /n, /n/lf fail. Those would need to be backslashes, not slashes. And \n matches a line break, not the paragraph breaks that I believe you have here. What can I use to replace the line break with a space? Just "$" (no quotes), it seems. Another thought: consider using Paste Special (instead of ordinary Paste) and "Unformatted text" when inserting text from elsewhere. This avoids some problems. I trust this helps. Brian Barker -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ Privacy Policy: https://www.documentfoundation.org/privacy
Re: [libreoffice-users] striping crlf
After some testing, it seems the "$" without the quotes does the job? \n or \r doesn't find it? Not sure why $ works? On 3 Jan 2024 at 11:08, bill wrote: From: bill Date sent: Wed, 3 Jan 2024 11:08:39 -0500 To: LibreOffice Send reply to: will...@techservsys.com Subject:[libreoffice-users] striping crlf > I have a document that I copied from the original on the web > (legally). Now I need to modify it using LO. The document has > hard line breaks that I want to remove. Using the find and > replace form I can not figure out how to indicate a line break. > With "Regular Expressions" selected /n, /n/lf fail. > > What can I use to replace the line break with a space? > > Thank you > > -- > Bill Drescher > william {at} TechServSys {dot} com > > -- > To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org > Problems? > https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ > Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette > List archive: https://listarchives.libreoffice.org/global/users/ > Privacy Policy: https://www.documentfoundation.org/privacy ++ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:mi...@guam.net mailto:msetze...@gmail.com mailto:msetze...@gmx.com Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ ++ -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ Privacy Policy: https://www.documentfoundation.org/privacy
[libreoffice-users] striping crlf
I have a document that I copied from the original on the web (legally). Now I need to modify it using LO. The document has hard line breaks that I want to remove. Using the find and replace form I can not figure out how to indicate a line break. With "Regular Expressions" selected /n, /n/lf fail. What can I use to replace the line break with a space? Thank you -- Bill Drescher william {at} TechServSys {dot} com -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ Privacy Policy: https://www.documentfoundation.org/privacy