Thread: Kobo Bug thread
View Single Post
Old 10-30-2023, 06:25 PM   #1474
underblue
Junior Member
underblue began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2019
Device: Kobo Libra 2
Product:
Libra 2

Firmware:
4.1.15

File types:
kepub

Sideloaded or from Kobobooks:
Sideloaded


Steps to reproduce:
1. Load a KEPUB onto the Kobo Libra 2.
2. Navigate to a section, preferably poetry, where text lines are followed by newline characters (empty line or space between paragraphs).
3. Attempt to select text that ends at the very end of a line immediately before a newline character.
4. Observe the behavior of the text selection, especially in lines containing the `<span class="koboSpan">` element.
5. For comparison, attempt the same selection on lines without the `<span class="koboSpan">` element.
6. Additionally, note the presence of the `<br/>` tag in the HTML used for creating spaces between paragraphs.


Current result:
- When selecting text ending at a line before a newline character, the selection unexpectedly expands to cover the entire content of the book, starting from the initial point of selection.
- This behavior causes the Kobo Libra 2 device to freeze and eventually crash.
- Lines containing the `<span class="koboSpan">` element trigger this behavior, while lines without it do not. However, lines without this element also do not support highlighting functionality.
- The presence of the `<br/>` tag in the HTML seems to be the problem.

Workaround:
Using CSS for spacing instead of the `<br/>` tag has shown to mitigate the issue. But I can't edit every kepub to avoid <br/>.
underblue is offline   Reply With Quote