diff --git a/aqt/editor.py b/aqt/editor.py
index c5230b54b..a8d508590 100644
--- a/aqt/editor.py
+++ b/aqt/editor.py
@@ -518,6 +518,8 @@ class Editor(object):
# reverse the url quoting we added to get images to display
txt = unicode(urllib2.unquote(
txt.encode("utf8")), "utf8", "replace")
+ # make sure a trailing
is removed
+ txt = re.sub("(
)*$", "", txt)
self.note.fields[self.currentField] = txt
if not self.addMode:
self.note.flush()