Commit 12ea6dab authored by Janne Koschinski's avatar Janne Koschinski

Minor UI fix

parent 2025daa4
......@@ -8,7 +8,7 @@ const changeListener = (event) => {
requestAnimationFrame(() => {
const element = event.target;
element.innerText = element.innerText.replace(/\n *$/, "");
element.innerText = element.innerText.replace(/^ *\n *$/, "");
})
};
......@@ -19,6 +19,7 @@ function initFakeInput() {
elem.addEventListener("keypress", keyListener);
}
elem.dataset["bound_fake_input"] = "true";
element.innerText = element.innerText.replace(/\n *$/, "");
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment