Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 40% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
14 | 1 | class VersionHtmlFormatter(HtmlFormatter): |
|
15 | """ |
||
16 | HtmlFormatter for generating HTML code for version of SDoc document. |
||
17 | """ |
||
18 | |||
19 | # ------------------------------------------------------------------------------------------------------------------ |
||
20 | 1 | def generate(self, node, file): |
|
21 | """ |
||
22 | Generates HTML code for a version node. |
||
23 | |||
24 | :param sdoc.sdoc2.node.VersionNode.VersionNode node: The version node. |
||
25 | :param file file: The output file. |
||
26 | """ |
||
27 | text = 'Version: {}'.format(node.argument) |
||
28 | html_code = Html.generate_element('h3', {}, text) |
||
29 | |||
30 | file.write(html_code) |
||
31 | |||
34 |