Quote:
Originally Posted by CyanBC
What need to happen and how I fixed it:
I just did a search for all <br class="calibre1" /> and replaced with <p class="calibre1" />
Then I `Saved` and re-opened, this causes Sigil to add <p>the text</p> wherever those things are located (or something, I might be wrong, but it changes it).
Then the stylesheet worked.
|
Look at theducks' post again, you should have replaced <br class="calibre1" /> with:
</p> <p class="calibre1">
so that you end the first paragraph (with </p>) and then start a new one (with <p class="calibre1">).
Whatever you used worked because Sigil uses Tidy, which "corrected" all the syntax for you, but I'd be careful in the future as Tidy sometimes goes into crazy-overzealous-correcting mode if the code is too badly messed up.
Note that there's no <p /> tag, the end paragraph tag is </p>, which comes after <p>.
<br> is a special case, it only has a start tag and no end tag; so use <br> in html and <br /> in xhtml, c.f.
https://developer.mozilla.org/en-US/...TML/Element/br