View Single Post
Old 02-23-2014, 06:15 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The semicolon is only optional if it's the final element in a style. Maybe this?

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

and check "multiline", or whatever there is to include newlines in \s. This, however, will not work if you want to remove everything (you should not remove the } ). You could preprocess the file and first replace every } with ;}, now every rule should be ended by a semicolon (and there will possibly be two consecutive semicolons in some cases, which you could remove afterwards).
Jellby is online now   Reply With Quote