Write the collected set of html chunks to path.
(self, path)
| 606 | self.comment('Cannot find HTML file "%s"' % path) |
| 607 | |
| 608 | def writeHtml(self, path): |
| 609 | """Write the collected set of html chunks to path.""" |
| 610 | try: |
| 611 | f = codecs.open(path, 'w', 'utf-8') |
| 612 | f.write(self.getHtml()) |
| 613 | f.close() |
| 614 | except IOError: |
| 615 | print('### Cannot write HTML file "%s"' % path) |
| 616 | |
| 617 | def getHtml(self): |
| 618 | """Answers the accumulated HTML as single string.""" |
no test coverage detected