View Single Post
Old 03-04-2013, 02:11 PM   #413
DavidReed
Junior Member
DavidReed began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2013
Device: iPad /
Quote:
Originally Posted by JSWolf View Post
The best way to remove margins from page-template is to actually delete it. Unless it's being used for columns, it's 100% worthless. margins should be set in the CSS.

But, I did misread the error message. But if you are removing the margins, set the plugin to delete the file. It's not needed.
I totally agree about deleting but... part of the "problem" in processing a library of books is not always being 100% sure if there are columns anywhere in a book so I don't want to delete the .xpgt unless it's only used for margins. So my "backup" plan was to just "remove the margins". The work around is to do margin removal as a separate step from any other processing of known artifacts / metadata. If an xpgt is "empty" the margin removal will error out but since it's a separate step, no harm done.

The code should still not error on an XML file that's empty.
DavidReed is offline   Reply With Quote