fix: empty tags and title

This commit is contained in:
quenousimporte 2024-02-02 12:01:31 +01:00
parent 7e75006d85
commit 86c2ff8ff6
1 changed files with 5 additions and 1 deletions

View File

@ -1319,6 +1319,10 @@ function indexheader(content)
if (key == "tags")
{
val = val.split(",").map(t => t.trim());
if (val.length == 1 && !val[0])
{
val.pop();
}
}
indexedheader[key] = val;
}
@ -2939,7 +2943,7 @@ function bind(title, content, pos)
var changed = title.value != title;
backup = content;
title.value = title;
window.title.value = title;
setwindowtitle();
seteditorcontent(content || "", true);