Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


At 18:00 16/04/2020 -0500, Jason Noname wrote:
Is there a way to force text to reflow in Writer?

Text reflows automatically.

Say I have a file with hard wraps at the end of each line and I want to reflow all the paragraphs.

You mean that you want to *join* existing paragraphs, so that the entire (selected) text becomes a single paragraph?

o Search for $ .
o Replace with nothing.
You will need to have "Regular expressions" ticked, of course.

This will do exactly what you ask, so that paragraphs are joined without anything in between. In practice, you may wish to replace with a single space instead of nothing.

Note that if you have empty paragraphs in your text, these will be removed - but they will prevent paragraphs preceding and following them from being merged. You could merely repeat the same Find & Replace, but that will duplicate the spaces, if you have included them. Instead, first replace $ with space and then replace $ with nothing.

Or alternately is there a way to find and replace line breaks (searching for '\n' does not seem to work)?

This is not an alternative to your other question but a different requirement. If you indeed have line breaks, \n will match them. But paragraph breaks are not line breaks, and \n will not match paragraph breaks.

I trust this helps.

Brian Barker


--
To unsubscribe e-mail to: users+unsubscribe@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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.