Tweak the regex for line breaks replacing in generic previews descriptions
commite422f09fa4d6e624dd28a132036f2c5f495248f7
authorDavid Callé <davidc@framli.eu>
dateTue 8 Oct 2013, 14:17 (13 years ago)
parent00ff8e2
Dash/Generic/GenericPreview.qml+1−1
@@ -122,7 +122,7 @@ DashPreview {
122122 fontSize: "small"
123123 opacity: 0.6
124124 color: "white"
125− text: previewData.description.replace(/[\r\n]+/g, "<br />")
125+ text: previewData.description.replace(/[\r\n]/g, "<br />")
126126 style: Text.Raised
127127 styleColor: "black"
128128 wrapMode: Text.WordWrap