<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 - EDITING: Validity Custom Formula does not find newlines"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=142934">142934</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>EDITING: Validity Custom Formula does not find newlines
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.1.2.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jk.kornelsen@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Example in cell A1 containing an ASCII 10 newline (Ctrl+Enter):
1
2
This works as a spreadsheet formula but not in Data > Validity > Custom,
Formula.
=NOT(ISERROR(SEARCH(CHAR(10);A1)))
Expected Result:
Cell A1 should be accepted as valid.
Actual Result:
Invalid value.
On further investigation, the following formula passes validity, so it seems
that newlines are handled to some extent.
NOT(ISERROR(SEARCH(CHAR(10);"1" & CHAR(10) & "2")))
Discussion:
<a href="https://ask.libreoffice.org/en/question/314291/calc-validity-formula-matching-a-newline/">https://ask.libreoffice.org/en/question/314291/calc-validity-formula-matching-a-newline/</a></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>