mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-23 03:59:30 -07:00
better hazard formatting
This commit is contained in:
@@ -66,7 +66,7 @@ class Hazards extends WeatherDisplay {
|
|||||||
const lines = this.data.map((data) => {
|
const lines = this.data.map((data) => {
|
||||||
const fillValues = {};
|
const fillValues = {};
|
||||||
// text
|
// text
|
||||||
fillValues['hazard-text'] = `${data.properties.event}<br/><br/>${data.properties.description.replace('\n', '<br/><br/>')}`;
|
fillValues['hazard-text'] = `${data.properties.event}<br/><br/>${data.properties.description.replaceAll('\n\n', '<br/><br/>').replaceAll('\n', ' ')}`;
|
||||||
|
|
||||||
return this.fillTemplate('hazard', fillValues);
|
return this.fillTemplate('hazard', fillValues);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -53,5 +53,6 @@
|
|||||||
},
|
},
|
||||||
"files.exclude": {},
|
"files.exclude": {},
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
|
"editor.formatOnSave": true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user