![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 31650
Join Date: May 2011
Location: Asuncion (Paraguay)
Device: In the house, 3 K3 in use, 4 more in storage, and a K5 for testing
|
Opening and closing tags mismatch
I am editing an OCR generated .epub I downloaded from Archive.org.
Some paragraphs are poem stanzas, so I have inserted <br> tags to restore the stanzas formatting, as in Code:
<p>The tune with the river in it, the fast river and the courageous, that<br> kens not stop nor tarry, that runs round rock and over fall<br> with a good humour, yet no mood for anything<br> but the way before it.-Neil Munro</p> "Parsing failed: Opening and closing tag mismatch: br line 25 and p line 26"; now I was taught that the <br> tag did not need a closing tag. Is that a bug in the parser ? Or should I globally replace <br> with <br></br> and hope for the best ? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
EPUB uses XHTML, in XHTML closing tags are required.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
ɴₐɴ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
|
In HTML, that would be ok. However, EPUBs use XHTML which require closing tags.
You can use self-closing tags: Code:
<br /> Last edited by JimmyR; 10-02-2016 at 11:53 AM. Reason: Repeat of previous, simultaneous post. |
![]() |
![]() |
![]() |
#4 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 31650
Join Date: May 2011
Location: Asuncion (Paraguay)
Device: In the house, 3 K3 in use, 4 more in storage, and a K5 for testing
|
OK Thanks.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
whatever happened to autofix closing tags ? | cybmole | Sigil | 12 | 05-22-2013 10:01 AM |
closing tags not auto-fixing | cybmole | Sigil | 8 | 12-04-2012 08:49 AM |
Help with EPUb validation and closing tags | book24 | ePub | 1 | 05-24-2011 05:16 PM |
Release 0.7.54 - Mobi self-closing tags | Moonraker | Calibre | 2 | 04-09-2011 07:35 AM |
opening & closing journals | Rina | enTourage Archive | 4 | 05-14-2010 06:47 PM |