Return the HTML page as a string.
(self)
| 277 | self.encoding = encoding |
| 278 | |
| 279 | def __str__(self): |
| 280 | """Return the HTML page as a string.""" |
| 281 | page = [] |
| 282 | |
| 283 | if self.css: |
| 284 | page.append('<style type="text/css">\n%s\n</style>' % self.css) |
| 285 | |
| 286 | # Set encoding |
| 287 | page.append( |
| 288 | '<meta http-equiv="Content-Type" content="text/html;charset=%s">' % self.encoding |
| 289 | ) |
| 290 | |
| 291 | for table in self.tables: |
| 292 | page.append(str(table)) |
| 293 | page.append("<br />") |
| 294 | |
| 295 | return "\n".join(page) |
| 296 | |
| 297 | def __iter__(self): |
| 298 | """Iterate through tables""" |
nothing calls this directly
no outgoing calls
no test coverage detected