Total Complexity | 1 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | """ |
||
14 | 1 | class TextHtmlFormatter(HtmlFormatter): |
|
15 | """ |
||
16 | HtmlFormatter for generating HTML code for text. |
||
17 | """ |
||
18 | |||
19 | # ------------------------------------------------------------------------------------------------------------------ |
||
20 | 1 | def generate(self, node, file): |
|
21 | """ |
||
22 | Generates the HTML code for a text node. |
||
23 | |||
24 | :param sdoc.sdoc2.node.TextNode.TextNode node: The text node. |
||
25 | :param file file: The output file. |
||
26 | """ |
||
27 | 1 | file.write(Html.escape(node.argument)) |
|
28 | |||
29 | 1 | HtmlFormatter.generate(self, node, file) |
|
30 | |||
34 |