[android] Fixed missing newlines in bookmark desc

Fixes #5873

Signed-off-by: Rodrigo Salgueiro <rodrigo.correia.salgueiro@tecnico.ulisboa.pt>
This commit is contained in:
Rodrigo Salgueiro
2025-03-28 15:47:17 +00:00
committed by Konstantin Pastbin
parent 3a1df72809
commit 87c44041fc

View File

@@ -477,7 +477,8 @@ public class Holders
? category.getDescription()
: category.getAnnotation();
Spanned spannedDesc = Utils.fromHtml(desc);
String formattedDesc = desc.replace("\n", "<br>");
Spanned spannedDesc = Utils.fromHtml(formattedDesc);
mDescText.setText(spannedDesc);
UiUtils.showIf(!TextUtils.isEmpty(spannedDesc), mDescText);