![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2021
Device: callibre
|
hello and can someone please help?
I am using Calibre for epub and getting an html error im unfamiliar with how to fix. it is for bare text. There are three all the same as this line: <p class="calibre1"> with text following this tag
|
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 769
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
|
Bare text is text that's outside tags. Can you copy/paste the actual error message and the html around where it's saying the problem is?
|
![]() |
![]() |
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Also, with ePub, you need an opening AND closing tag.
<p class="calibre">Some text.</p> It can throw an error if it doesn’t find the closing tag. That can catch people that have done web design because it’s not required in html, but it is in xhtml. |
![]() |
![]() |
![]() |
#4 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,705
Karma: 103837201
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
I've never seen working HTML without closing tags other than standalone tags such as <br>, which is usually <br/>
It doesn't just throw an error. The rest of the file can be affected. |
![]() |
![]() |
![]() |
#5 | |||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
Quote:
Quote:
(Obviously this won't work in xhtml in epubs, where even void elements like hr and br have to be closed with a trailing slash: <hr />, <br />.) Last edited by bookman156; 10-17-2022 at 10:14 AM. |
|||
![]() |
![]() |
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
If using Sigil, run Mend. Sigil's gumbo parser will parse according to html (as well as xhtml rules) and serialize to xhtml. Since calibre has a parser originally based on gumbo too, it should do the same.
|
![]() |
![]() |
![]() |
#7 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,705
Karma: 103837201
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
There are actually lots of legal html omissions of ending tags. In fact any time an ending tag can be inferred from other starting or ending tags (such as inferring an ending p tag by seeing another opening p tag) it is legal to omit it. See the whatwg rules if interested.
A real html parser involves lots of special rules. https://html.spec.whatwg.org/multipa...plied-end-tags Last edited by KevinH; 10-17-2022 at 04:42 PM. |
![]() |
![]() |
![]() |
Tags |
bare text error, epub validation |
|