diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 366dbdd42..5fb149119 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -3093,9 +3093,10 @@ holding contextual information."
(while (search-forward "" nil t)
(and (re-search-backward "" nil t)
(replace-match "" t t))
- (and (search-forward "" nil t)
- (re-search-forward "]*>" nil t)
- (replace-match "" t t)))))
+ (search-forward "" nil t)
+ (if (re-search-forward "]*>" nil t)
+ (replace-match "" t t)
+ (insert "\n")))))
;;;; Src Block
@@ -4085,7 +4086,7 @@ contextual information."
(with-current-buffer buf
;; Prettify output if needed.
(if (equal (file-name-nondirectory (buffer-file-name buf))
- "content.xml")
+ "content.xml")
(org-odt--fix-annotations))
(when org-odt-prettify-xml
(indent-region (point-min) (point-max)))