View Single Post
Old 02-23-2014, 08:30 AM   #14
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by Jellby View Post
That's because that line is wrong, it's missing the semicolon. If it's in a real book, it would fail in ADE I guess.



It would also find 1.5mm

How about just ending with ";?" ?

\s*line-height:\s*1(\.[0123]\d*)?(em)?\s*;?
stops here
line-height:1.2em;

PS
ADE is quite happy for a real book to contain this in CSS - * I have seen it many times - no trailing ;

.calibre99
{
lineheight:1.2
}

but hey, I never claimed it was an easy puzzle

clearly " remove all fixed line heights from a given book" is not a trivial thing to automate

Last edited by cybmole; 02-23-2014 at 08:35 AM.
cybmole is offline   Reply With Quote