From bf75416b36393bddd5073e2f8c9070694489fa40 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 31 Dec 2019 17:13:31 +0100 Subject: [PATCH] Fix: newline characters are ignored in comments --- js/src/mapviewmodel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/mapviewmodel.js b/js/src/mapviewmodel.js index 5a9ab71..42e9a16 100644 --- a/js/src/mapviewmodel.js +++ b/js/src/mapviewmodel.js @@ -173,7 +173,7 @@ export default class MapViewModel extends ViewModel {
${$._('track')} ${uUtils.htmlEncode(pos.trackname)}
- ${(pos.hasComment()) ? `
${uUtils.htmlEncode(pos.comment)}
` : ''} + ${(pos.hasComment()) ? `
${uUtils.htmlEncode(pos.comment).replace(/\n/, '
')}
` : ''} ${(pos.hasImage()) ? `
image
` : ''}
${$._('time')} ${date}