openpack/editor.py
def part_edit_cmd():
	'Edit a part from an OOXML Package without unzipping it'
	parser = argparse.ArgumentParser(description=inspect.getdoc(part_edit_cmd))
	parser.add_argument(
		'path',
		help='Path to part (including path to zip file, i.e. ./file.zipx/part)',
	)
	parser.add_argument(
		'--reformat-xml',
		action='store_true',
		help=(
			'run the content through an XML pretty-printer '
			'first for improved editability'
		),
	)
	args = parser.parse_args()
	part_edit(args.path, args.reformat_xml)
def part_edit_cmd():
	'Edit a part from an OOXML Package without unzipping it'
	parser = argparse.ArgumentParser(description=inspect.getdoc(part_edit_cmd))
	parser.add_argument(
		'path',
		help='Path to part (including path to zip file, i.e. ./file.zipx/part)',
	)
	parser.add_argument(
		'--reformat-xml',
		action='store_true',
		help=(
			'run the content through an XML pretty-printer '
			'first for improved editability'
		),
	)
	args = parser.parse_args()
	part_edit(args.path, args.reformat_xml)
def part_edit_cmd ( ) : parser = argparse . ArgumentParser ( description = inspect . getdoc ( part_edit_cmd ) ) parser . add_argument ( 'path' , help = 'Path to part (including path to zip file, i.e. ./file.zipx/part)' , ) parser . add_argument ( '--reformat-xml' , action = 'store_true' , help = ( 'run the content through an XML pretty-printer ' 'first for improved editability' ) , ) args = parser . parse_args ( ) part_edit ( args . path , args . reformat_xml )
Edit a part from an OOXML Package without unzipping it
Edit a part from an OOXML Package without unzipping it