<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:documentfoundation@nuclearsunshine.com" title="DN <documentfoundation@nuclearsunshine.com>"> <span class="fn">DN</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Regular expression "\n" in replace field inputs "\n" instead of paragraph break"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=43107">bug 43107</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>NEW
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Regular expression "\n" in replace field inputs "\n" instead of paragraph break"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=43107#c20">Comment # 20</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Regular expression "\n" in replace field inputs "\n" instead of paragraph break"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=43107">bug 43107</a>
from <span class="vcard"><a class="email" href="mailto:documentfoundation@nuclearsunshine.com" title="DN <documentfoundation@nuclearsunshine.com>"> <span class="fn">DN</span></a>
</span></b>
<pre><span class="quote">> Help reads: : "\n is for line end entered with Shft+Enter"</span >
(for anyone else reading - the help page by clicking Help on the search/replace
window and clicking "List of Regular Expressions")
This is a documentation bug. This refers to Writer only, not Calc.
In *Writer*, <Enter> creates a "Paragraph break", whereas <Shift><Enter>
creates a "line break". Search/replace works as per the "List of Regular
Expressions" docs in Writer, specifically:
<span class="quote">> \n
> Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the Find and Replace boxes, and then perform a search and replace.
> \n in the Find text box stands for a line break that was inserted with the Shift+Enter key combination.
> \n in the Replace text box stands for a paragraph break that can be entered with the Enter or Return key.</span >
<span class="quote">> Hence I do not have a file to test this exactly..</span >
The steps I listed result in a doc to test this.
<span class="quote">> behavior was the same in version 3.3.0 and is in OpenOffice.
> So, is this really a bug, or something that behaves different than expected??</span >
It's a bug. The content of "replace" should be interpreted as a regex (i.e. \n
should be interpreted as a newline, not a literal string). It may well have
always been a bug in Open/LibreOffice.</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>