| Conditions | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 13 |
| Ratio | 100 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | 1 | from typing import Any |
|
| 15 | 1 | def generate(self, node: ItemNode, file: Any) -> None: |
|
| 16 | """ |
||
| 17 | Generates the HTML code for an item node. |
||
| 18 | |||
| 19 | :param ItemNode node: The item node. |
||
| 20 | :param any file: The output file. |
||
| 21 | """ |
||
| 22 | 1 | attributes = {'id': node.get_option_value('id')} |
|
| 23 | |||
| 24 | 1 | file.write('<li {0}>'.format(Html.generate_attribute('id', attributes['id']))) |
|
| 25 | 1 | node.prepare_content_tree() |
|
| 26 | 1 | HtmlFormatter.generate(self, node, file) |
|
| 27 | 1 | file.write('</li>') |
|
| 28 | |||
| 32 |