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
parent 51f4ede797
commit 814f84efab
3 changed files with 4 additions and 4 deletions

View File

@ -26,6 +26,6 @@ QString markdownToHTML(const QString& markdown)
QString htmlStr(buffer); QString htmlStr(buffer);
free(buffer); free(buffer);
return htmlStr; return htmlStr;
} }

View File

@ -219,7 +219,7 @@ QString StringUtils::htmlListPatch(QString htmlStr)
int pos = htmlStr.indexOf(match); int pos = htmlStr.indexOf(match);
int imgPos, dist; int imgPos, dist;
while (pos != -1) { 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; pos = pos + dist;
imgPos = htmlStr.indexOf("<img ", pos); imgPos = htmlStr.indexOf("<img ", pos);
if (imgPos == -1) if (imgPos == -1)

View File

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