| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | """ |
||
| 14 | class TextHtmlFormatter(HtmlFormatter): |
||
| 15 | """ |
||
| 16 | HtmlFormatter for generating HTML code for text. |
||
| 17 | """ |
||
| 18 | |||
| 19 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 20 | 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 | file.write(Html.escape(node.argument)) |
||
| 28 | |||
| 29 | HtmlFormatter.generate(self, node, file) |
||
| 30 | |||
| 34 |