Write a generalized block/box for some values.
(self, filename, prefix, items)
| 366 | write(_TABLE_SUFFIX, file=fp) |
| 367 | |
| 368 | def writeBox(self, filename, prefix, items): |
| 369 | """Write a generalized block/box for some values.""" |
| 370 | self.logMsg('diag', '# Generating include file:', filename) |
| 371 | |
| 372 | with open(filename, 'w', encoding='utf-8') as fp: |
| 373 | write(self.conventions.warning_comment, file=fp) |
| 374 | write(prefix, file=fp) |
| 375 | |
| 376 | for item in items: |
| 377 | write(f"* {item}", file=fp) |
| 378 | |
| 379 | write(_BLOCK_SUFFIX, file=fp) |
| 380 | |
| 381 | def writeEnumBox(self, basename, values): |
| 382 | """Output a box of enumerants.""" |
no test coverage detected