From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francesco Montanari Subject: ox-man line break Date: Sun, 26 Mar 2017 14:50:58 +0300 Message-ID: <20170326114931.4dfz2xafwzq7q7va@debian-francesco.bb.dnainternet.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="tcnrxkty6buexcqt" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cs6hW-0002Yw-SL for emacs-orgmode@gnu.org; Sun, 26 Mar 2017 07:51:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cs6hT-0002jd-PZ for emacs-orgmode@gnu.org; Sun, 26 Mar 2017 07:51:14 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:36304 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cs6hT-0002jO-GN for emacs-orgmode@gnu.org; Sun, 26 Mar 2017 07:51:11 -0400 Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --tcnrxkty6buexcqt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --tcnrxkty6buexcqt Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-ox-man.el-org-man-line-break-Add-new-line-before-lin.patch" >From 54d46f6e364f589237cd519c39bb99fae7eb3520 Mon Sep 17 00:00:00 2001 From: Francesco Montanari 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 --tcnrxkty6buexcqt--