From 187ba51d721ef4e06ca7ae647216ada8800a9c32 Mon Sep 17 00:00:00 2001 From: Christian Moe Date: Wed, 23 Oct 2013 18:49:03 +0200 Subject: [PATCH] ODT: Stop adding leading space after line break * lisp/ox-odt.el (org-odt-line-break): remove newline after line-break tag (org-odt-plain-text): ditto. 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 57a9b6e..775fe1d 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2059,7 +2059,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 @@ -2980,7 +2980,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)) -- 1.8.3.2