PrepareHTMLString more readable return

This commit is contained in:
ReznoRMichael 2021-02-17 04:24:38 +01:00
parent 460ce42ad4
commit 5dfda5bffa
3 changed files with 11 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -228,7 +228,7 @@
<div style="margin-bottom: 20px;"></div>
<p class="smalltext">
v1.0.4. Work-In-Progress. Feedback: <a href="https://steamcommunity.com/app/367520/discussions/0/2915472677711090083/" target="_blank"><i class="simpleicon-steam"></i>Steam Discussions</a> <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2209910193" target="_blank"><i class="simpleicon-steam"></i>Steam Guide</a>.<br>
v1.1.0. Work-In-Progress. Feedback: <a href="https://steamcommunity.com/app/367520/discussions/0/2915472677711090083/" target="_blank"><i class="simpleicon-steam"></i>Steam Discussions</a> <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2209910193" target="_blank"><i class="simpleicon-steam"></i>Steam Guide</a>.<br>
Programmed, written and created by 🉑 <a href="https://github.com/ReznoRMichael/hollow-knight-completion-check" target="_blank">rezno[R]</a> &copy; 20202021<br>
<a href="https://www.paypal.me/ReznoRMichael" target="_blank"><i class="simpleicon-paypal"></i>Support Tool (PayPal)<i class="simpleicon-paypal"></i></a>
</p>

View file

@ -266,7 +266,15 @@ function PrepareHTMLString(divId, textPrefix = "Unknown Completion Element: ", t
let dash = "";
if (textSuffix.length && textPrefix.length) dash = "— ";
return divStart + icon + b[0] + textPrefix + b[1] + span[0] + pSpan + spoilerSpan[0] + dash + textSuffix + spoilerSpan[1] + span[1] + divEnd;
// return divStart + icon + b[0] + textPrefix + b[1] + span[0] + pSpan + spoilerSpan[0] + dash + textSuffix + spoilerSpan[1] + span[1] + divEnd;
return `
${divStart}
${icon}${b[0]}${textPrefix}${b[1]}
${span[0]}
${pSpan}${spoilerSpan[0]}${dash}${textSuffix}${spoilerSpan[1]}
${span[1]}
${divEnd}
`;
}
/**