View Single Post
Old 04-27-2015, 10:11 PM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Tag mismatch error reporting

Tag mismatch error reporting.

Example: editing lines 424-6 file chapter-01.htm
Code:
<blockquote>
    <p class="noindent"><i>Intellect may fail you, but the killer instinct 
is invincible.</i></p>
  </blockquote>
If I delete the </blockquote> Sigil's Preview window shows :

Quote:
This page contains the following errors:
error on line 437 at column 7: Opening and ending tag mismatch.
or if I do an F7 validation:
Quote:
OEBPS/Text/chapter-01.htm Line 437 expected end of tag "blockquote"
(why can't I copy the text from this report? I had to manually retype it.)

-- line 437 is the </body> at the end of the file.


In Calibre editor if I do the same thing and run "Checkbook" it tells me:
Quote:
ERROR: Parsing failed: Opening and ending tag mismatch: blockquote line 424 and body, line 437, column 9****[OEBPS/Text/chapter-01.htm]

When I have a missing tag, which happens to me at least quite a lot, what I need to know is where the OPENING tag is. Then I can usually see immediately where the missing tag should go.
Sigil just says it didn't find the end tag in the file.
So I have to scan through the whole file and check every tag pair of that type.

Or what I usually, is open it in Calibre and find and fix it at once.

Can Sigil report the location of the opening tag like this?
(And also allow text from the validation to be copied?)

Last edited by AlanHK; 04-27-2015 at 10:16 PM.
AlanHK is offline   Reply With Quote