on xenial help sign in
Drop TODOs for s/\n/<br \/>/g.
98f0260Michał Sawicz
Dash/Generic/GenericPreview.qml−2
@@ -79,7 +79,6 @@ DashPreview {
79 fontSize: "medium"
79 fontSize: "medium"
80 opacity: 0.6
80 opacity: 0.6
81 color: "white"
81 color: "white"
82− // TODO: should backend come back with <br /> already?
83 text: previewData.subtitle.replace(/[\r\n]+/g, "<br />")
82 text: previewData.subtitle.replace(/[\r\n]+/g, "<br />")
84 style: Text.Raised
83 style: Text.Raised
85 styleColor: "black"
84 styleColor: "black"
@@ -95,7 +94,6 @@ DashPreview {
95 fontSize: "small"
94 fontSize: "small"
96 opacity: 0.6
95 opacity: 0.6
97 color: "white"
96 color: "white"
98− // TODO: should backend come back with <br /> already?
99 text: previewData.description.replace(/[\r\n]+/g, "<br />")
97 text: previewData.description.replace(/[\r\n]+/g, "<br />")
100 style: Text.Raised
98 style: Text.Raised
101 styleColor: "black"
99 styleColor: "black"