From fac63541a4831414b052de6400e7543bbc611db0 Mon Sep 17 00:00:00 2001 From: flow Date: Fri, 24 Jun 2022 20:59:17 -0300 Subject: [PATCH] fix: work around HoeDown bug(?) in changelog line breaks Signed-off-by: flow --- launcher/ui/dialogs/ModUpdateDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/ui/dialogs/ModUpdateDialog.cpp b/launcher/ui/dialogs/ModUpdateDialog.cpp index 2d9698285..51e37bcfd 100644 --- a/launcher/ui/dialogs/ModUpdateDialog.cpp +++ b/launcher/ui/dialogs/ModUpdateDialog.cpp @@ -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
+ changelog_area->setHtml(h.process(info.changelog.toUtf8()).replace('\n', "
")); break; } case ModPlatform::Provider::FLAME: {