Text after line-breaks is not searchable #2855

Closed
opened 2026-02-05 05:28:28 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ssddanbrown on GitHub (Jun 17, 2022).

Given the content:

<p id="bkmrk-abc">ABC</p>
<p id="bkmrk-def">DEF</p>
<p id="bkmrk-hij">HIJ</p>
<p id="bkmrk-klmnopqrs">KLM<br />NOP<br />QRS</p>

Searching NOP or QRS will not yield results when searched as normal terms.


Confirmed on dev instance, Reported by AutoJunkie on discord.

Originally created by @ssddanbrown on GitHub (Jun 17, 2022). Given the content: ```html <p id="bkmrk-abc">ABC</p> <p id="bkmrk-def">DEF</p> <p id="bkmrk-hij">HIJ</p> <p id="bkmrk-klmnopqrs">KLM<br />NOP<br />QRS</p> ``` Searching `NOP` or `QRS` will not yield results when searched as normal terms. --- Confirmed on dev instance, [Reported by AutoJunkie](https://discord.com/channels/578552496637739008/987152228865417256/987152244753453158) on discord.
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 05:28:28 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 21, 2022):

Simplistic patch added in 0c6f598d91, Should handle vast majority of cases.

@ssddanbrown commented on GitHub (Jun 21, 2022): Simplistic patch added in 0c6f598d9172a5b69968a7442b947e2a3694f053, Should handle vast majority of cases.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2855