diff --git a/app/src/main/java/org/fdroid/fdroid/data/App.java b/app/src/main/java/org/fdroid/fdroid/data/App.java
index a10d03512..555cf815e 100644
--- a/app/src/main/java/org/fdroid/fdroid/data/App.java
+++ b/app/src/main/java/org/fdroid/fdroid/data/App.java
@@ -396,16 +396,6 @@ public class App extends ValueObject implements Comparable, Parcelable {
return app;
}
- /**
- * In order to format all in coming descriptions before they are written
- * out to the database and used elsewhere, this is needed to intercept
- * the setting of {@link App#description} to insert the format method.
- */
- @JsonProperty("description")
- private void setDescription(String description) { // NOPMD
- this.description = formatDescription(description);
- }
-
/**
* Parses the {@code localized} block in the incoming index metadata,
* choosing the best match in terms of locale/language while filling as
@@ -508,8 +498,11 @@ public class App extends ValueObject implements Comparable, Parcelable {
}
}
- whatsNew = getLocalizedEntry(localized, localesToUse, "whatsNew");
- String value = getLocalizedEntry(localized, localesToUse, "video");
+ String value = getLocalizedEntry(localized, localesToUse, "whatsNew");
+ if (!TextUtils.isEmpty(value)) {
+ whatsNew = value;
+ }
+ value = getLocalizedEntry(localized, localesToUse, "video");
if (!TextUtils.isEmpty(value)) {
video = value.split("\n", 1)[0];
}
diff --git a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java
index a92bb8875..1ff8a6b7f 100644
--- a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java
+++ b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java
@@ -505,7 +505,7 @@ public class AppDetailsRecyclerViewAdapter
suggestedApk.versionName).toUpperCase(locale));
sbWhatsNew.append("\n\n");
sbWhatsNew.append(app.whatsNew);
- whatsNewView.setText(sbWhatsNew);
+ whatsNewView.setText(trimTrailingNewlines(sbWhatsNew));
whatsNewView.setVisibility(View.VISIBLE);
// Set focus on the header section to prevent auto scrolling to
@@ -540,17 +540,15 @@ public class AppDetailsRecyclerViewAdapter
});
if (app.antiFeatures != null && app.antiFeatures.length > 0) {
StringBuilder sb = new StringBuilder();
- sb.append("
");
for (String af : app.antiFeatures) {
String afdesc = descAntiFeature(af);
- sb.append("