Thread: Kobo Bug thread
View Single Post
Old 10-30-2023, 08:25 PM   #1476
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by underblue View Post
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/>.
You may want to try the latest Libra 2 firmware.
JSWolf is offline   Reply With Quote