mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
better handling of newlines which should hopefully eliminate new line duplication
This commit is contained in:
@@ -43,7 +43,11 @@ function notecase2html(note) {
|
||||
}
|
||||
}
|
||||
|
||||
noteText = noteText.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
||||
noteText = noteText.replace(/(?:\r\n|\r)/g, '\n');
|
||||
|
||||
noteText = noteText.replace(/(.+)\n/g, '<p>$1</p>');
|
||||
|
||||
noteText = noteText.replace(/\n/g, '<p><br></p>');
|
||||
|
||||
noteText = noteText.replace(/ /g, ' ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user