From: Francesco Montanari <francesco.montanari@openmailbox.org>
To: emacs-orgmode@gnu.org
Subject: ox-man line break
Date: Sun, 26 Mar 2017 14:50:58 +0300 [thread overview]
Message-ID: <20170326114931.4dfz2xafwzq7q7va@debian-francesco.bb.dnainternet.fi> (raw)
[-- Attachment #1: Type: text/plain, Size: 258 bytes --]
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
[-- Attachment #2: 0001-ox-man.el-org-man-line-break-Add-new-line-before-lin.patch --]
[-- Type: text/x-diff, Size: 910 bytes --]
From 54d46f6e364f589237cd519c39bb99fae7eb3520 Mon Sep 17 00:00:00 2001
From: Francesco Montanari <francesco.montanari@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
next reply other threads:[~2017-03-26 11:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-26 11:50 Francesco Montanari [this message]
2017-04-01 8:20 ` ox-man line break Nicolas Goaziou
2017-04-12 15:08 ` Francesco Montanari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170326114931.4dfz2xafwzq7q7va@debian-francesco.bb.dnainternet.fi \
--to=francesco.montanari@openmailbox.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).