| Conditions | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 4.3145 |
| Changes | 0 | ||
| 1 | 1 | from lxml.etree import QName |
|
| 11 | 1 | def html_write(self, target, templates_path=None): |
|
| 12 | if templates_path: |
||
| 13 | env = PDFEnvironment(templates_path=templates_path) |
||
| 14 | init_template = env.get_template("_init.html") |
||
| 15 | else: |
||
| 16 | init_template = PDF_INIT_TEMPLATE |
||
| 17 | |||
| 18 | init_template.stream({"c": self, "k": QName(self.tag).localname}).dump(target) |
||
| 19 | |||
| 39 |