Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2017, 10:23 AM   #1
Sam Sahara
Enthusiast
Sam Sahara began at the beginning.
 
Posts: 31
Karma: 10
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
Advert
Old 09-13-2017, 10: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: 31,730
Karma: 8696042
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, 11:04 AM   #3
Sam Sahara
Enthusiast
Sam Sahara began at the beginning.
 
Posts: 31
Karma: 10
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:	45
Size:	322.8 KB
ID:	159021   Click image for larger version

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

Last edited by Dr. Drib; 09-19-2017 at 04:28 PM.
Sam Sahara is offline   Reply With Quote
Old 09-13-2017, 11: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: 31,730
Karma: 8696042
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:	38
Size:	950.8 KB
ID:	159024  
kovidgoyal is offline   Reply With Quote
Old 09-13-2017, 11:58 AM   #5
Sam Sahara
Enthusiast
Sam Sahara began at the beginning.
 
Posts: 31
Karma: 10
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
Advert
Old 09-13-2017, 01: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: 21,020
Karma: 20776314
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
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 offline   Reply With Quote
Old 09-13-2017, 02: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: 31,730
Karma: 8696042
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, 03: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: 1,277
Karma: 5400000
Join Date: Jun 2010
Device: Windows 10 tablet,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 04:28 PM.
gbm is offline   Reply With Quote
Old 09-14-2017, 11: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: 10,054
Karma: 58960723
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Does the <br /> need a different doctype for correct handling?
PeterT is offline   Reply With Quote
Old 09-15-2017, 12:49 AM   #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: 31,730
Karma: 8696042
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, 03:46 PM   #11
Sam Sahara
Enthusiast
Sam Sahara began at the beginning.
 
Posts: 31
Karma: 10
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, 04: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: 21,020
Karma: 20776314
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
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 offline   Reply With Quote
Old 09-15-2017, 10: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: 31,730
Karma: 8696042
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, 04: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: 40,882
Karma: 28745341
Join Date: Jan 2007
Location: San Borja (Lima), Peru
Device: Kindle: Oasis 3G, Voyage WiFi;FireHD; Kobo: Aura One, Glo HD
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:04 PM
How to create "Genre" expandable tree structure in Tag Browser? meads Library Management 3 02-20-2011 03:43 PM
Suggestion: Don't set "color" tag in .epub css McAlsop Calibre 16 06-17-2010 10:13 AM
BUG: GUI View button not working if Author tag contains "ë" ShellShock Calibre 1 11-15-2008 02:21 PM


All times are GMT -4. The time now is 03:33 AM.


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