(sectionData)
| 346 | data = _readData('phobos', 'traits') |
| 347 | |
| 348 | def convertSection(sectionData): |
| 349 | sectionLines = [] |
| 350 | headerText = '<b>{}</b>'.format(sectionData['header']) |
| 351 | sectionLines.append(headerText) |
| 352 | for bonusData in sectionData['bonuses']: |
| 353 | prefix = '{} '.format(bonusData['number']) if 'number' in bonusData else '' |
| 354 | bonusText = '{}{}'.format(prefix, bonusData['text'].replace('\u00B7', '\u2022 ')) |
| 355 | sectionLines.append(bonusText) |
| 356 | sectionLine = '<br />\n'.join(sectionLines) |
| 357 | return sectionLine |
| 358 | |
| 359 | newData = [] |
| 360 | for row in data: |
no test coverage detected