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

Le mardi 15 mars 2016 à 21:32 +0000, libreoffice a écrit :
Tim---Kracked_P_P---webmaster wrote:
I have a problem with a old book text file.  There are 3 or more
between paragraphs.  I want to reduce them down to only one.

When I turned the option to view non-printed characters, I get the
"PI-ish" looking symbol - ¶ - that is at the end of every
Each extra line has that symbol as its first character.  The
listed in the last line of this text looks like the non-printing
character, but must be different from it, since it gives a "no
found" error when using it.

It's just represented like that when showing non-printing characters;
it's not actually inserted as that character (which is itself a 
printable character).

So, is there a way to use that end of paragraph symbol/character to
for three in a row and replace it with only two?  Since some of the
paragraphs have more than 3 extra lines between paragraphs, I could
that find/replace several times.  All I want to show is the symbol
the end of the paragraph and the one between paragraphs.  Since
are at least 300 pages to the book - in text format - it would not
practicable to do this manually.

I haven't been able to easily find a way to search for consecutive 
paragraph breaks. However, you can find empty paragraphs by searching
for "^$" (without the quotes), and ticking "Regular expressions"
"Other options". Leave "Replace With" blank and click "Replace All",
all the empty paragraphs will be removed.

I don't know if that helps, since it will remove all empty
not just those where there are 3 or more together. Unfortunately 
searching for "$^$^" doesn't seem to work to find 2 consecutive empty

Why do you want to leave 2 consecutive paragraph breaks anyway? If
to get the spacing, you should remove the extra blank paragraphs and
the spacing by setting the spacing above/below paragraph in the 
paragraph formatting (or even better, in a paragraph style which is 
applied to the appropriate paragraphs).

Actually, I am trying to fix a bad .epub book.  I found that if I
convert it to a text file and the convert it back to an e-book
most of the formatting issues go away when viewing it with my
.epub readers [Nook and Pocketbook].

Before going too far with the spacing above/below paragraph, you
want to check that it actually gets applied when converted into .epub
format. I'd have thought it should, but you never know.

So has anyone tried to do something like this, removing blank
paragraphs, i.e. blank lines between paragraphs, as an automatic
find/replace option?
If you need to search and replace paragraph marks and others, you can
use AltSearch (
native-dialog-find-replace-for-writer). If have it installed on LO5.1
and it works fine. You look for two end of paragraph characters (select
from the drop-down or type in \p\p)
 and replace with just one; repeat until there no more replacements.
Rémy Gauthier.

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


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.