Hi,

When converting ORG to MAN pages (org-man-export-to-man), a new line
should be added before the line break `.br' tag. Otherwise, for
example, the following:
```
hello\\
word
```
is converted to:
```
hello.br
word
```

Patch attached.

Thanks,
Francesco
>From 54d46f6e364f589237cd519c39bb99fae7eb3520 Mon Sep 17 00:00:00 2001
From: Francesco Montanari <francesco.montan...@helsinki.fi>
Date: Sun, 26 Mar 2017 12:59:19 +0300
Subject: [PATCH] ox-man.el (org-man-line-break): Add new line before line
 break tag

* lisp/ox-man.el (org-man-line-break): Transcode a LINE-BREAK object
  from Org to Man by adding the appropriate tag on a new line.

TINYCHANGE
---
 lisp/ox-man.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-man.el b/lisp/ox-man.el
index 2bb121fbe..71718ab77 100644
--- a/lisp/ox-man.el
+++ b/lisp/ox-man.el
@@ -590,7 +590,7 @@ CONTENTS is nil.  INFO is a plist holding contextual information."
 (defun org-man-line-break (_line-break _contents _info)
   "Transcode a LINE-BREAK object from Org to Man.
 CONTENTS is nil.  INFO is a plist holding contextual information."
-  ".br\n")
+  "\n.br\n")
 
 
 ;;; Link
-- 
2.11.0

Reply via email to