mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 09:12:08 +08:00
possible fix to "double new lines"
This commit is contained in:
parent
f19c972d26
commit
36e5259527
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
function html2notecase(contents, note) {
|
||||
// remove any possible extra newlines which might be inserted - all relevant new lines should be only in <br> and <p>
|
||||
contents = contents.replace(/(?:\r\n|\r|\n)/, '');
|
||||
|
||||
contents = contents.replace(/<br \/>/g, '\n');
|
||||
contents = contents.replace(/<br>/g, '\n');
|
||||
contents = contents.replace(/<\/p>/g, '\n');
|
||||
|
|
Loading…
Reference in a new issue