I agree that 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 ```
Since the bug is flagged for newcomers, please find a patch attached. Thanks, Francesco
diff -Nru emacs24-24.5+1/debian/patches/0024-Emacs-add-line-break-org-to-man.patch emacs24-24.5+1/debian/patches/0024-Emacs-add-line-break-org-to-man.patch --- emacs24-24.5+1/debian/patches/0024-Emacs-add-line-break-org-to-man.patch 1970-01-01 02:00:00.000000000 +0200 +++ emacs24-24.5+1/debian/patches/0024-Emacs-add-line-break-org-to-man.patch 2017-01-22 22:32:37.000000000 +0200 @@ -0,0 +1,13 @@ +Index: emacs24-24.5+1/lisp/org/ox-man.el +=================================================================== +--- emacs24-24.5+1.orig/lisp/org/ox-man.el ++++ emacs24-24.5+1/lisp/org/ox-man.el +@@ -626,7 +626,7 @@ CONTENTS is nil. INFO is a plist holdin + (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 diff -Nru emacs24-24.5+1/debian/patches/series emacs24-24.5+1/debian/patches/series --- emacs24-24.5+1/debian/patches/series 2017-01-22 22:32:37.000000000 +0200 +++ emacs24-24.5+1/debian/patches/series 2017-01-22 22:32:37.000000000 +0200 @@ -21,3 +21,5 @@ 0021-Emacs-should-work-with-gcc-5.2-and-newer.patch 0022-Emacs-should-work-with-glibc-2.24-on-ppc64.patch 0023-Emacs-should-no-longer-hang-when-loading-TRAMP.patch +0024-Emacs-add-line-break-org-to-man.patch +