Fixed more clang formatting

Signed-off-by: SabrePenguin <lknofczynski@gmail.com>
This commit is contained in:
SabrePenguin 2024-05-01 00:21:32 -04:00 committed by Trial97
parent 5d25e21719
commit 6a49f513d8
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
3 changed files with 4 additions and 4 deletions

View File

@ -219,7 +219,7 @@ QString StringUtils::htmlListPatch(QString htmlStr)
int pos = htmlStr.indexOf(match);
int imgPos, dist;
while (pos != -1) {
dist = htmlStr.indexOf(">", pos) - pos + 1; // Get the size of the </ul> tag. Add one for zeroeth index
dist = htmlStr.indexOf(">", pos) - pos + 1; // Get the size of the </ul> tag. Add one for zeroeth index
pos = pos + dist;
imgPos = htmlStr.indexOf("<img ", pos);
if (imgPos == -1)

View File

@ -262,8 +262,8 @@ void Page::onPackSelectionChanged(Modpack* pack)
ui->versionSelectionBox->clear();
if (pack) {
currentModpackInfo->setHtml(StringUtils::htmlListPatch("Pack by <b>" + pack->author + "</b>" + "<br>Minecraft " + pack->mcVersion +
"<br>" + "<br>" +
pack->description + "<ul><li>" + pack->mods.replace(";", "</li><li>") + "</li></ul>"));
"<br>" + "<br>" + pack->description + "<ul><li>" +
pack->mods.replace(";", "</li><li>") + "</li></ul>"));
bool currentAdded = false;
for (int i = 0; i < pack->oldVersions.size(); i++) {