use pre-warp instead of <br> for RSS feed

Sat, 27 Nov 2021 11:04:23 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 27 Nov 2021 11:04:23 +0100
changeset 240
7303812a4424
parent 239
9365c7fb0240
child 241
1ca4f27cefe8

use pre-warp instead of <br> for RSS feed

src/main/kotlin/de/uapcore/lightpit/servlet/FeedServlet.kt file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/issues-feed.jsp file | annotate | diff | comparison | revisions
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/FeedServlet.kt	Sat Nov 27 10:44:17 2021 +0100
+++ b/src/main/kotlin/de/uapcore/lightpit/servlet/FeedServlet.kt	Sat Nov 27 11:04:23 2021 +0100
@@ -95,7 +95,7 @@
         diff.description = generator.generateDiffRows(
             prev.description.split('\n'),
             diff.description.split('\n')
-        ).joinToString("<br>", transform = DiffRow::getOldLine)
+        ).joinToString("\n", transform = DiffRow::getOldLine)
 
         return diff
     }
--- a/src/main/webapp/WEB-INF/jsp/issues-feed.jsp	Sat Nov 27 10:44:17 2021 +0100
+++ b/src/main/webapp/WEB-INF/jsp/issues-feed.jsp	Sat Nov 27 11:04:23 2021 +0100
@@ -48,7 +48,7 @@
                 <div><b><fmt:message key="issue.assignee"/></b>: ${issue.assignee}</div>
                 <div><b><fmt:message key="issue.eta"/></b>: ${issue.eta}</div>
                 <h2><fmt:message key="issue.description"/></h2>
-                ${issue.description}
+                <div style="white-space: pre-wrap;">${issue.description}</div>
             ]]></description>
             <category><fmt:message key="issue.category.${issue.category}"/></category>
             <c:set var="link" value="${baseHref}projects/${viewmodel.project.node}/issues/-/-/${issue.id}"/>

mercurial