[Libreoffice-bugs] [Bug 119728] New: Unable to select multiple formats in find/search & replace

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 6 13:38:00 UTC 2018


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

            Bug ID: 119728
           Summary: Unable to select multiple formats in find/search &
                    replace
           Product: LibreOffice
           Version: 6.0.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: will.friedman at gmail.com

Description:
Consider the following text:

<i>First Example.</i> First. Second. Third.

<i>Second Example</i>.   First. Second. Third.

<i>Third Example.    </i>First. Second. Third.

I wish to search for all periods followed by an arbitrary number of spaces
following italicized text, and replace them with non-italicized colons and a
single space, to produce the following text:

<i>First Example</i>: First. Second. Third.

<i>Second Example</i>: First. Second. Third.

<i>Third Example</i>: First. Second. Third.

The find regex for this is ([a-z])\. + and the replace is $1: . However, this
only works if I could specify that only ([a-z]) should be in italics. It seems
that LO is unable to do this. If I set the find field to Italics, then only the
third example will be properly replaced. The second won't be found at all
(since the period is not in italics) and the first will replace the period with
a colon+space but retain the following space (since it's not in italics). On
the other hand, if I omit searching for the italics, then it matches all text
followed by a period, which results in erroneously replacing all other periods
at the end of sentences with colons as well. So this search is impossible.
There is a cumbersome three-step process to do it, but it should be doable in a
single step.

Steps to Reproduce:
1. Enter the text as I described above.
2. Perform the search and replace as I described above.
3. See that it is impossible.

Actual Results:
Text that should be matched and replaced is not.

Expected Results:
All periods and an arbitrary number of spaces after italicized text should be
replaced with a non-italicized colon and a single space.


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
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/20180906/89c08b98/attachment-0001.html>


More information about the Libreoffice-bugs mailing list