Quote:
Originally Posted by bobcdy
And it isn't just unclosed code. For example, in the file I had a separate line
<span class="page">jkl;asdfa</span>
This was what I was trying to get rid of all the extra line feeds with regex. Sigil insisted on adding <p> and </p> for this and all similar lines
|
As ducky said, you can't have a "naked" span as a direct child of the <body>, much like you can't have a naked <i>, <b> etc. It's an inline element, not a block one.
Quote:
Originally Posted by bobcdy
and every once in a while it likes to add <p> </p> and other additions.
|
Tidy will never insert that.
Quote:
Originally Posted by bobcdy
I'll eventually have to bite the bullet and really really try to learn regex well enough to use it in Sigil. A problem, though, is that the regex flavors of Notepad++ and Sigil are different and I use both extensively. It's very confusing to me...
|
Notepad++ uses a proprietary and very,
very limited subset of common regex operations. I've transitioned to UltraEdit because of that limitation alone.
Sigil OTOH uses a very powerful Perl-like regex engine. It has its limitations, but it's still orders of magnitude more powerful than the one in Notepad++.