* ox-man line break
@ 2017-03-26 11:50 Francesco Montanari
2017-04-01 8:20 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Francesco Montanari @ 2017-03-26 11:50 UTC (permalink / raw)
To: emacs-orgmode
[-- 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: ox-man line break
2017-03-26 11:50 ox-man line break Francesco Montanari
@ 2017-04-01 8:20 ` Nicolas Goaziou
2017-04-12 15:08 ` Francesco Montanari
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2017-04-01 8:20 UTC (permalink / raw)
To: Francesco Montanari; +Cc: emacs-orgmode
Hello,
Francesco Montanari <francesco.montanari@openmailbox.org> writes:
> 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.
Applied. Thank you.
As a side note, it's good to see a patch for "ox-man.el" because
I seriously wondered if it was used at all.
Also, if do know and use it, and you have some spare time to share with
us, we have a dire need for a manual chapter about that export back-end.
Just sayin'.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ox-man line break
2017-04-01 8:20 ` Nicolas Goaziou
@ 2017-04-12 15:08 ` Francesco Montanari
0 siblings, 0 replies; 3+ messages in thread
From: Francesco Montanari @ 2017-04-12 15:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 339 bytes --]
Hello,
On 04/01/2017 11:20 AM, Nicolas Goaziou wrote:
> Applied. Thank you.
Thanks.
> Also, if do know and use it, and you have some spare time to share with
> us, we have a dire need for a manual chapter about that export back-end.
> Just sayin'.
Sure, I'll try to reserve some time to work on that.
Best,
Francesco
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-12 15:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-26 11:50 ox-man line break Francesco Montanari
2017-04-01 8:20 ` Nicolas Goaziou
2017-04-12 15:08 ` Francesco Montanari
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).