![]() |
Something in Sigil disturbs my tags
I'm using Sigil 1.3.0 on Windows 7 64-bit.
I seem to be going around in circles with formatting my book. My book is organized so that it has every chapter in it's own file. I have a working CSS stylesheet. I am working partially from NotJohn's guide. I have gone through and re-edited issues in all the files countless times. But something keeps messing with my html tags. For instance, certain operations will change: <p><h2 id="sigil_toc_id_1">ABOUT THIS BOOK</h2></p> to invalidate my <p> tags: <p></p> <h2 id="sigil_toc_id_1">ABOUT THIS BOOK</h2> <p></p> But whatever is doing it, does this to all the p-tags in all the chapters when it happens. So if I have <p class="first">here's some text</p> It will get changed to <p class="first"></p>here's some text<p></p> I have found a few things that change all my tags: Generate Table of Contents Open Files Saving Files changing the name of a chapter file in the Book Browser column When this happens, I have to go through my book, line by line, and change back all my tags to the way I had them. Have I missed something obvious? |
You can't nest a H2 inside a P
Your invalid code may have confused things when trying to clean the errors |
OK, Thanks. I didn't know that. I wonder if I have that kind of error elsewhere? <stray thought>
|
Quote:
This is the plugin that I use to verify my epubs. The title might be misleading; the plugin/wrapper may be considered simple but epubcheck is rigorous. https://www.mobileread.com/forums/sh...d.php?t=248186 It may seem intimidating but it's not, but you'll first need to install Java before you can install that plugin. Installing Java these days is pretty brainless. Java SE 15 seems to be the latest and greatest. |
Probably more than you want to know but you can check the HTML spec at whatwg.org, specifically 3.2.5.2.5 Phrasing content which lists those elements that can be used inside <p>...</p>.
Interesting reading if taken with a large supply of your favourite source of caffeine. |
What were the <p> tags around your <h2> ones intended to do? Extra spacing? You can get the same result by modifying the effect of 'h2' in your stylesheet.
|
Quote:
|
Quote:
Warning(inputpreprocessor):W29004: Forcefully closed opened Tag: <header> Not a fatal error, and you get a usable file. But still annoying. I don't know what would happen if you submitted such a file to Amazon to publish. Since my small mind cannot see any need for these tags, I delete them on sight, the files are still good per epubcheck. |
Quote:
|
Quote:
Quote:
|
I'm still intrigued why you would WANT an extra tag round a h1? What does it do?
|
Quote:
https://standardebooks.org/ebooks/walter-scott/ivanhoe https://www.w3schools.com/tags/tag_header.asp |
@steve999...Just run the Sigil plugin called CustomCleanerPlus. The plugin cleans up the code and will remove any dross or redundant code. It will also remove all instances of "<p></p>" from the epub html in one hit. You can download and install this Sigil plugin from here.
|
Quote:
I've edited ePub 3 back to ePub 2 and the things removed didn't make one difference once I fixed the CSS. |
Again, Jon. Your penchant for constantly poo-pooing all things EPUB3 at every turn is not welcome in the Sigil area. Stop it, or stay out. Those are your choices.
|
| All times are GMT -4. The time now is 07:56 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.