diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py
index 31c5d3b8f..77e89ac77 100644
--- a/qt/aqt/editor.py
+++ b/qt/aqt/editor.py
@@ -496,9 +496,10 @@ class Editor:
return True
m = self.note.model()
for c, f in enumerate(self.note.fields):
+ f = f.replace("
", "").strip()
notChangedvalues = {"", "
"}
if previousNote and m["flds"][c]["sticky"]:
- notChangedvalues.add(previousNote.fields[c])
+ notChangedvalues.add(previousNote.fields[c].replace("
", "").strip())
if f not in notChangedvalues:
return False
return True
diff --git a/qt/ts/src/editor.ts b/qt/ts/src/editor.ts
index 890e884b0..eea5fd8c5 100644
--- a/qt/ts/src/editor.ts
+++ b/qt/ts/src/editor.ts
@@ -352,9 +352,7 @@ function setFields(fields) {
oncut='onCutOrCopy(this);'
contentEditable=true
class=field
- >
-${f}
-
+ >${f}
`;
}