fix: work around HoeDown bug(?) in changelog line breaks

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-06-24 20:59:17 -03:00
parent dfd6cb29be
commit fac63541a4
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -357,10 +357,12 @@ void ModUpdateDialog::appendMod(CheckUpdateTask::UpdatableMod const& info)
auto changelog = new QTreeWidgetItem(changelog_item);
auto changelog_area = new QTextBrowser();
switch (info.provider) {
case ModPlatform::Provider::MODRINTH: {
HoeDown h;
changelog_area->setHtml(h.process(info.changelog.toUtf8()));
// HoeDown bug?: \n aren't converted to <br>
changelog_area->setHtml(h.process(info.changelog.toUtf8()).replace('\n', "<br>"));
break;
}
case ModPlatform::Provider::FLAME: {