Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2017, 09:23 AM   #1
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
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]
If I close the tag this way: <br class="brs"></br> the above error is no more raised. It seems to be a wrong behaviour, as I can read on w3schools.com:

Code:
In HTML, the <br> tag has no end tag.

In XHTML, the <br> tag must be properly closed, like this: <br />.
Sam Sahara is offline   Reply With Quote
Old 09-13-2017, 09:33 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-13-2017, 10:04 AM   #3
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
Quote:
Originally Posted by kovidgoyal View Post
<br class="brs" /> is not an error and the editor does not mark it as an error, at least for me.
Here you are a screen-shot of the editor with <br class="brs"/>

[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
Attached Thumbnails
Click image for larger version

Name:	img.png
Views:	176
Size:	322.8 KB
ID:	159021   Click image for larger version

Name:	img2.png
Views:	163
Size:	292.1 KB
ID:	159022  

Last edited by Dr. Drib; 09-19-2017 at 03:28 PM.
Sam Sahara is offline   Reply With Quote
Old 09-13-2017, 10:51 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170913_202106.png
Views:	176
Size:	950.8 KB
ID:	159024  
kovidgoyal is offline   Reply With Quote
Old 09-13-2017, 10:58 AM   #5
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
Quote:
Originally Posted by kovidgoyal View Post
And here's a screenshot showing that it works for me with calibre 3.7 on my linux system.
Maybe is a problem with a python module. How can I test this hypothesis?

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
Sam Sahara is offline   Reply With Quote
Old 09-13-2017, 12:08 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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/>
on the second line

I adjust the <p or <h line height when I want BR to make a bigger gap
theducks is online now   Reply With Quote
Old 09-13-2017, 01:46 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-13-2017, 02:16 PM   #8
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Sam Sahara View Post
Here you are a screen-shot of the editor with <br class="brs"/>

[Image violates Posting Guidelines for size - MODERATOR]

and a screen-shot with <br class="brs"></br>





My sistem is:
Linux Mint 18.2 Cinnamon 32bit
Kernel 4.8.0-53-generic
Works on my Linux Mint 18.2 Cinnamon 64bit Kernel 4.8.0-53-generic calibre 3.7.

bernie

Last edited by Dr. Drib; 09-19-2017 at 03:28 PM.
gbm is offline   Reply With Quote
Old 09-14-2017, 10:47 PM   #9
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
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?
PeterT is offline   Reply With Quote
Old 09-14-2017, 11:49 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-15-2017, 02:46 PM   #11
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
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>
the same line, but with two more break lines, does not raise any error:

Code:
<h2 id="heading_id_233" class="center">ANIMA CARA
<br class="brs">
(gennaio 1899)</h2>
Sam Sahara is offline   Reply With Quote
Old 09-15-2017, 03:01 PM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by Sam Sahara View Post
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>
the same line, but with two more break lines, does not raise any error:

Code:
<h2 id="heading_id_233" class="center">ANIMA CARA
<br class="brs" />
(gennaio 1899)</h2>
That error is because you failed to close the BR tag (red)
theducks is online now   Reply With Quote
Old 09-15-2017, 09:14 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-19-2017, 03:30 PM   #14
Dr. Drib
Grand Sorcerer
Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.
 
Dr. Drib's Avatar
 
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.
Dr. Drib is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:13 PM.


MobileRead.com is a privately owned, operated and funded community.