Quote:
Originally Posted by kiwidude
I guess the question for the regex gurus is what would be a "safe" addition to that, given the permutations of how styles might be laid out in the original file. Can I get away with this for instance?
Code:
@font\-face[^}]+?}\s+
|
I'm not a guru either, but the addition of the \s+ LOOKS harmless. If \s only matches space, tab, newline then it shouldn't remove anything vital
What could possibly go wrong?
Another opinion re: line-height...
I only zap some occurrences (manually, of course), those which affect main body text. I've had problems with long chapter headings if the font is large and the line-height isn't set to 1.3 or higher. Also in agreement about Dropcaps. If the setting isn't 'just right' for your chosen font, it can look terrible. Difficult to achieve a 'perfect' result automatically, I think. I don't suppose most people are this obsessive, though.