def _formatValuesString(valuesStr): valuesBuilder = str_builder() values = valuesStr.split('/') length = len(values) for idx, value in enumerate(values): valuesBuilder.addStyledText(text_styles.stats, value) if idx < length - 1: valuesBuilder.addStyledText(text_styles.standard, '/') return valuesBuilder.render()
def _formatValuesString(valuesStr): valuesBuilder = str_builder() values = valuesStr.split("/") length = len(values) for idx, value in enumerate(values): valuesBuilder.addStyledText(text_styles.stats, value) if idx < length - 1: valuesBuilder.addStyledText(text_styles.standard, "/") return valuesBuilder.render()