Skip to content
Snippets Groups Projects
Commit 7646dd4d authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Add paragraph tag to RSS Feed description fields

Add paragraph tag to RSS Feed description fields
parent d4c8ce62
No related branches found
No related tags found
No related merge requests found
...@@ -274,6 +274,8 @@ public class SyndicationFeed ...@@ -274,6 +274,8 @@ public class SyndicationFeed
//populate item's description //populate item's description
for (String df : descriptionFields) for (String df : descriptionFields)
{ {
db.append("<p>");
// Special Case: "(date)" in field name means render as date // Special Case: "(date)" in field name means render as date
boolean isDate = df.indexOf("(date)") > 0; boolean isDate = df.indexOf("(date)") > 0;
if (isDate) if (isDate)
...@@ -304,6 +306,8 @@ public class SyndicationFeed ...@@ -304,6 +306,8 @@ public class SyndicationFeed
} }
db.append("\n"); db.append("\n");
} }
db.append("</p>");
} }
if (db.length() > 0) if (db.length() > 0)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment