<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Unable to select multiple formats in find/search & replace"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119728">119728</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unable to select multiple formats in find/search & replace
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>will.friedman@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>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:</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>