reccmp: improve progress bar text rendering

This commit is contained in:
itsmattkc
2023-06-27 18:00:53 -07:00
parent 40fdc5b2f5
commit f03cee6b6e
2 changed files with 26 additions and 16 deletions

View File

@@ -429,7 +429,7 @@ def gen_svg(svg, name, icon, implemented_funcs, total_funcs, raw_accuracy):
templatedata = templatedata[0:percentstart] + str(progwidth) + templatedata[percentend + 1:]
# Replace percentage statistic
templatedata = templatedata.replace('{percent}', '%.2f%%' % (total_statistic * 100), 1)
templatedata = templatedata.replace('{percent}', '%.2f%%' % (total_statistic * 100), 2)
svgfile = open(svg, 'w')
if not svgfile: