From a535d291fd2f221194abd19ca1bf664d2c782e8b Mon Sep 17 00:00:00 2001 From: Christian Moe Date: Wed, 23 Oct 2013 18:49:03 +0200 Subject: [PATCH] ox-odt: Stop adding leading space after line break * lisp/ox-odt.el (org-odt-line-break, org-odt-plain-text): Remove newline after line-break tag. The exporter was pretty-printing the ODT XML with newlines after forced line breaks, but LibreOffice would interpret those as spaces. This led to a leading space after every manual line break. --- lisp/ox-odt.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.11.4.GIT