View Single Post
Old 10-21-2010, 07:08 AM   #16
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by bobcdy View Post
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 View Post
and every once in a while it likes to add <p>&nbsp</p> and other additions.
Tidy will never insert that.

Quote:
Originally Posted by bobcdy View Post
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++.
Valloric is offline   Reply With Quote