Quote:
Originally Posted by Agama
How about simply removing the entire @page declaration and replacing it with a new one defined by the user, (in the plugin). This removes the need for any clever parsing.
|
The theme of Kiwidude's plugin is to do minimal damage/modification, which I fully agree with. @page could potentially specify things other than margin, and I wouldn't want to delete such things with a wholesale replacement. Aside from that replacing an existing @page declaration is different logic from inserting one that doesn't exist, the way the function works at the moment is it only modifies things which already exist (and removes them from the css if they're empty after removing margins).