on xenial help sign in
Tweak the regex for line breaks replacing in generic previews descriptions
e422f09David Callé
Dash/Generic/GenericPreview.qml+1−1
@@ -122,7 +122,7 @@ DashPreview {
122 fontSize: "small"
122 fontSize: "small"
123 opacity: 0.6
123 opacity: 0.6
124 color: "white"
124 color: "white"
125− text: previewData.description.replace(/[\r\n]+/g, "<br />")
125+ text: previewData.description.replace(/[\r\n]/g, "<br />")
126 style: Text.Raised
126 style: Text.Raised
127 styleColor: "black"
127 styleColor: "black"
128 wrapMode: Text.WordWrap
128 wrapMode: Text.WordWrap