Remove all render_with_engine function.
This commit is contained in:
parent
6019a75e87
commit
68882fbcf6
1 changed files with 0 additions and 18 deletions
18
__init__.py
18
__init__.py
|
|
@ -229,24 +229,6 @@ class Render():
|
|||
return None
|
||||
|
||||
|
||||
|
||||
def render_with_engine(self):
|
||||
"""
|
||||
Once the XML have been prepared, this routine is called
|
||||
to do the actual rendering.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
template = environment.from_string(self.xml_document.toxml())
|
||||
rendered = template.render(**self.template_vars)
|
||||
|
||||
# Replace all \n in field values with a ODT line break
|
||||
rendered = rendered.replace('\n', '<text:line-break/>')
|
||||
|
||||
return rendered
|
||||
|
||||
|
||||
def create_text_span_node(self, xml_document, content):
|
||||
span = self.content.createElement('text:span')
|
||||
text_node = self.create_text_node(self.content, content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue