diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index ae9e4732f..a0f8114e7 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -2058,7 +2058,7 @@ CONTENTS is nil. INFO is a plist holding contextual information."
(defun org-odt-line-break (line-break contents info)
"Transcode a LINE-BREAK object from Org to ODT.
CONTENTS is nil. INFO is a plist holding contextual information."
- "\n")
+ "")
;;;; Link
@@ -2967,7 +2967,7 @@ contextual information."
;; Handle break preservation if required.
(when (plist-get info :preserve-breaks)
(setq output (replace-regexp-in-string
- "\\(\\\\\\\\\\)?[ \t]*\n" "\n" output t)))
+ "\\(\\\\\\\\\\)?[ \t]*\n" "" output t)))
;; Return value.
output))