Quote:
Originally Posted by Jellby
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