round soul to integer (compatibility with earlier HK versions)

This commit is contained in:
ReznoRMichael 2021-07-07 23:26:18 +02:00
commit 50fb58e607
3 changed files with 5 additions and 5 deletions

View file

@ -366,11 +366,11 @@ function SingleEntryFill(section, entry) {
span = ["", ""];
Img = soulNormal;
for (let i = 0, total = entry.amountTotal / 33; i < total; i++) {
for (let i = 0, total = Math.round(entry.amountTotal / 33); i < total; i++) {
textSuffix += Img;
}
textSuffix += `${p}<sup>(${entry.amountTotal / 33})</sup>`;
textSuffix += `${p}<sup>(${Math.round(entry.amountTotal / 33)})</sup>`;
break;