fix: work around HoeDown bug(?) in changelog line breaks
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
dfd6cb29be
commit
fac63541a4
@ -357,10 +357,12 @@ void ModUpdateDialog::appendMod(CheckUpdateTask::UpdatableMod const& info)
|
|||||||
auto changelog = new QTreeWidgetItem(changelog_item);
|
auto changelog = new QTreeWidgetItem(changelog_item);
|
||||||
auto changelog_area = new QTextBrowser();
|
auto changelog_area = new QTextBrowser();
|
||||||
|
|
||||||
|
|
||||||
switch (info.provider) {
|
switch (info.provider) {
|
||||||
case ModPlatform::Provider::MODRINTH: {
|
case ModPlatform::Provider::MODRINTH: {
|
||||||
HoeDown h;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case ModPlatform::Provider::FLAME: {
|
case ModPlatform::Provider::FLAME: {
|
||||||
|
Loading…
Reference in New Issue
Block a user