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