09-13-2017, 09:23 AM | #1 |
Connoisseur
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
|
Strange "tag mismatch"
Calibre 3.6
The <br class="brs" /> tag is evaluated as an error with the following message: Code:
ERROR: Parsing failed: Opening and ending tag mismatch: br line 11 and h2, line 11, column 87****[OEBPS/text/content0078.xhtml] Code:
In HTML, the <br> tag has no end tag. In XHTML, the <br> tag must be properly closed, like this: <br />. |
09-13-2017, 09:33 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
<br class="brs" /> is not an error and the editor does not mark it as an error, at least for me.
|
09-13-2017, 10:04 AM | #3 | |
Connoisseur
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
|
Quote:
[Image violates Posting Guidelines for size - MODERATOR] and a screen-shot with <br class="brs"></br> [Image violates Posting Guidelines for size - MODERATOR] My sistem is: Linux Mint 18.2 Cinnamon 32bit Kernel 4.8.0-53-generic Last edited by Dr. Drib; 09-19-2017 at 03:28 PM. |
|
09-13-2017, 10:51 AM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And here's a screenshot showing that it works for me with calibre 3.7 on my linux system.
|
09-13-2017, 10:58 AM | #5 | |
Connoisseur
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
|
Quote:
I have: Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux |
|
09-13-2017, 12:08 PM | #6 |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
take a close look at your highlighted code again
br is a self closing tag like you show in your initial post But your error has Code:
br/> I adjust the <p or <h line height when I want BR to make a bigger gap |
09-13-2017, 01:46 PM | #7 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Install the binary calibre from https://calibre-ebook.com/download_linux it uses its own bundled python.
|
09-13-2017, 02:16 PM | #8 | |
Wizard
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie Last edited by Dr. Drib; 09-19-2017 at 03:28 PM. |
|
09-14-2017, 10:47 PM | #9 |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Does the <br /> need a different doctype for correct handling?
|
09-14-2017, 11:49 PM | #10 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The doctypes in my screenshot and the OPs screenshot are the same.
|
09-15-2017, 02:46 PM | #11 |
Connoisseur
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
|
Just to add a little bit of confusion.
the following line raise the above error: Code:
<h2 id="heading_id_233" class="center">ANIMA CARA<br class="brs">(gennaio 1899)</h2> Code:
<h2 id="heading_id_233" class="center">ANIMA CARA <br class="brs"> (gennaio 1899)</h2> |
09-15-2017, 03:01 PM | #12 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
09-15-2017, 09:14 PM | #13 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Both of those raise an error for me. But note that with parsing errors often only the first error is reported, so if you have both of those in the same file, only the first one will be reported. Once you fix the first, the second will be reported. This is because the parser aborts on encountering an error it cannot handle.
|
09-19-2017, 03:30 PM | #14 |
Grand Sorcerer
Posts: 44,748
Karma: 55645321
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
|
Moderator Notice
Please take a few moments to read our Posting Guidelines, in particular the part about the maximum image size allowed (600x600 pixels). Images that violate those guidelines may be deleted. It is every member's responsibility to read our Posting Guidelines and follow them. Thanks. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The element type "p" must be terminated by the matching end-tag "</p>". | uieluck | ePub | 10 | 02-12-2013 07:04 PM |
How to create "Genre" expandable tree structure in Tag Browser? | meads | Library Management | 3 | 02-20-2011 02:43 PM |
Suggestion: Don't set "color" tag in .epub css | McAlsop | Calibre | 16 | 06-17-2010 09:13 AM |
BUG: GUI View button not working if Author tag contains "ë" | ShellShock | Calibre | 1 | 11-15-2008 01:21 PM |