Quote:
Originally Posted by kiwidude
In terms of thee replace/insert. As you pointed out blindly replacing the 'Page declaration with a new one containing just margins is a no-no. Though could you not take the old one, parse it to split by ; and then strip out just the margin related elements to insert your own. Then replace the whole @page element back in the file? I'm asking out of ignorance (which is why I didn't take on this feature myself!).
I don't have an answer for Quality Check however. Good luck... 
|
That's exactly what my function does (splitting by ; ), so for CSS files where @page exists this would be trivial to add, but not every CSS file has an @page, so I would need an extra function to insert it, along with keeping track of whether it was already set in the body tag etc. All doable, though, just want to try and come up with the right strategy before I dive in.