[Libreoffice-bugs] [Bug 139584] New: \p should be added to the possible regular expressions for search and replace

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jan 13 12:02:50 UTC 2021


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

            Bug ID: 139584
           Summary: \p should be added to the possible regular expressions
                    for search and replace
           Product: LibreOffice
           Version: 7.2.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: adalbert.hanssen at gmx.de

This proposal applies for all versions of LO Writer I have used so far. I just
checked tis necessity with the current development version.

There is a very useful LibreOffice plugin called AltSearch.oxt. I frequently
use it e.g. to replace paragraph marks (\p) by forced linefeeds (\n), protected
spaces (\S) by normal spaces, remove all spaces before any paragraph mark and
the like. But I still use AltSearch very often because with the normal
Search/Replace mechanism, I can't search for paragraph marks and: AltSearch can
search for styles, e.g. for [:::CharStyleName=Code(Zch)::].

Unfortunately AltSearch is very buggy and it happens over and over that it
stops working even if it has worked for a long time in one and the same version
of LibreOffice. Also it looks like the development of AltSearch has ended or
fallen into hibernation: the current release 1.4.2 dates back to 2017-03-24
according to
https://extensions.openoffice.org/de/project/alternative-dialog-find-replace-writer-altsearch.

Meanwhile LO Writer's Search/Replace has been equipped with the capability to
search for and replace with special some regular expressions. Unfortunately
paragraph mark (\p) – other than the line feed (\n) – is missing among those
patterns and this is the one which is part of more than half of my searches.
Search for \p it in
file:///opt/libreofficedev7.2/help/de/text/shared/01/02100001.html?&DbPAR=WRITER&System=UNIX:
you won't find it and try it, just to see if it was not only forgotten in the
documentation: you won't find the next paragraph mark either.

Therefore as the first step, I propose to add the capability to
LibreOfficeWriter to search for or replace with \p.

-- 
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/20210113/3c169c24/attachment.htm>


More information about the Libreoffice-bugs mailing list