Fixed displaying of notes

This commit is contained in:
2026-01-20 21:40:17 -05:00
parent 72ec89292f
commit f741ce5dc9
4 changed files with 27 additions and 5 deletions

View File

@@ -38,8 +38,19 @@
<tr>
<th><%=t(:field_notes)%></th>
<td><%= customer.notes %></td>
<td>
<pre id="note-display" style="text-align: left; white-space: pre-wrap; font-family: inherit;">
<%= customer.notes %>
</pre>
</td>
</tr>
<script>
const preElement = document.getElementById('note-display');
// This takes the text, trims the edges, and puts it back
preElement.textContent = preElement.textContent.trim();
</script>
</tbody>
</table>
<br/>