Returns the current content of the document as a string.
(self)
| 68 | self._writes.append(s) |
| 69 | |
| 70 | def getvalue(self): |
| 71 | """ |
| 72 | Returns the current content of the document as a string. |
| 73 | """ |
| 74 | if self.hrefs: |
| 75 | self.style.new_paragraph() |
| 76 | for refname, link in self.hrefs.items(): |
| 77 | self.style.link_target_definition(refname, link) |
| 78 | return ''.join(self._writes).encode('utf-8') |
| 79 | |
| 80 | def translate_words(self, words): |
| 81 | return [self.translation_map.get(w, w) for w in words] |
no test coverage detected