better hazard formatting
This commit is contained in:
parent
81561f75a1
commit
9aa877d6fb
2 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue