Browse Source

adicionado string.strip ao render_xml

pull/77/head
Felipe 8 years ago
parent
commit
60538ca913
  1. 4
      pytrustnfe/xml/__init__.py

4
pytrustnfe/xml/__init__.py

@ -17,6 +17,10 @@ def recursively_empty(e):
def render_xml(path, template_name, remove_empty, **nfe):
for item in nfe:
if type(nfe[item]) is str:
nfe[item] = nfe[item].strip()
env = Environment(
loader=FileSystemLoader(path), extensions=['jinja2.ext.with_'])

Loading…
Cancel
Save