if flags:
for flag in flags:
document.edoc.getroot().set(flag, 'yes')
+ if 'wrapping' in options:
+ options['wrapping'] = str(options['wrapping'])
result = document.transform(style, **options)
}).encode('utf-8')
else:
result = unicode(result).encode('utf-8')
- return OutputFile.from_string("\r\n".join(result.splitlines()))
+ return OutputFile.from_string("\r\n".join(result.splitlines()) + "\r\n")