Fix Bug 503750: Update inkscape extension to include new --enable-viewboxing option

This commit is contained in:
JSCHILL1 2010-01-08 22:24:08 -06:00
parent ed1c522caf
commit 6230682a01
4 changed files with 19 additions and 16 deletions

View file

@ -37,10 +37,13 @@ class ScourInkscape (inkex.Effect):
self.OptionParser.add_option("--indent",
action="store", type="string", dest="indent_type", default="space",
help="indentation of the output: none, space, tab (default: %default)")
self.OptionParser.add_option("--enable-viewboxing", type="inkbool",
action="store", dest="enable_viewboxing", default=False,
help="changes document width/height to 100%/100% and creates viewbox coordinates")
def effect(self):
input = file(sys.argv[11], "r")
input = file(sys.argv[12], "r")
sys.stdout.write(scourString(input.read(), self.options).encode("UTF-8"))
input.close()
sys.stdout.close()