Manuscript templates that have worked for years have suddenly stopped working. Smashwords, Stealth, and others who have recently upgraded their epubcheck validation are all rejecting my epub files created in Calibre.
The error occurs immediately before each generation of a "Section Break". No problem with "Page Breaks".
Two general types of errors occur, the first is a "Span" error. Here is the Error Warning Notice:
Code:
Error while parsing file 'element "span" not allowed here; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")
Here is the Code in the epub creating the error:
Code:
<span class="calibre4"><span class="calibre5"><br class="calibre7"/>
</span></span>
Here is the Code in the HTML file generated by MS Word that causes Calibre to build this error in the epubs.
Code:
<u><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'><br style=''>
</span></u>
The second type of error is an 'element "b" not allowed here', and the Warning Error Notice is:
Code:
Error while parsing file 'element "b" not allowed here; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")'.
Here is the Code in the epub file creating the error (Notice its identical to the code in the HTML file generated by MS Word):
Code:
<b><span style='font-size:12.0pt;font-family:"Arial","sans-serif"'><br style=''>
</span></b>
Is there something I can do in MS Word to prevent this error, or is the something Calibre can do to fix it? Deleting the offending code from the epub or html files prevents this error. But the nature of it as it changes from manuscript to manuscript makes writing a batch file an impossible solution. Does anyone have any ideas please?