![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2025
Device: Boox Page
|
Line breaks won't show in tables
First photo is how it looks on KOReader (Turned on table borders on KOReader for clarity), second photo is how it looks on Calibre. (how it should look).
The second cell should have line breaks between the phrases, but they don't show up on KOReader. I've tried changing the style tweaks for tables (including turning on "full-width tables", "ignore publisher table and cell widths") in the KOReader settings and nothing works. Even tried making the font size smaller but nothing. The HTML on the ebook: Code:
<table class="table"><tr><td class="tab1"><span class="smallcaps">TOPICS:</span> </td><td>A Proclamation<br>The Wisest of Lines<br>A Poem</td></tr></table> Code:
.table { font-size: large; margin-top: 1em; margin-bottom: 2em; text-indent: 0em; text-align: justify; font-weight: bold; } .tab1 { font-size: small; margin-top: 0em; margin-bottom: 0em; text-indent: 0em; text-align: justify; padding-left: 0em; padding-right: 2em; vertical-align: top; } Is this a KOReader issue? The tables are in the beginning of all 40 chapters and I would rather not have to edit the html for every single one, especially since I haven't finished reading the book. KOReader: ![]() Calibre (how it should look): ![]() |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2025
Device: Boox Page
|
Update: my conclusion so far is that KOReader just flattens <br> (changing the widths of the cells didn't work either so it wasn't a spacing issue) so I've just decided to change everything to <div>...
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,652
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
If you use <br/> instead, does that make a difference?
As for the cell width, use PHP Code:
|
![]() |
![]() |
![]() |
#4 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2025
Device: Boox Page
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,652
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
As for the table columns, on rare occasions I have seen some weird formatting when the widths are not set and depending on the reader being used. Keep that in the back of your mind in case you find the tables start playing up. |
|
![]() |
![]() |
Advert | |
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show tables in a reading device | szalonyptak | Sigil | 11 | 09-09-2020 04:00 PM |
Line breaks on Kindle, no line breaks on 4 PC | Siavahda | Kindle Formats | 0 | 10-20-2012 05:50 AM |
Odd line breaks in tables | DTM | ePub | 9 | 08-05-2011 02:41 PM |
iBooks: pictures do not show in tables | georg3200 | ePub | 32 | 05-20-2011 03:05 AM |
No line breaks | ecpepper | Amazon Kindle | 3 | 08-09-2009 06:42 PM |