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

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow committed 2022-07-17 11:33:44 -03:00
1 parent dfd6cb29be
commit fac63541a4
1 file changed
+3 -1
+3 -1
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: {