From 738cb15a2f9326fa0c4c129d6b3a43774932a1b9 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 31 May 2007 10:19:22 +0200 Subject: [PATCH] Add manpage XSL from git and enhance with literallayout fixes It ensures that .sp tags will be properly output so they do not appear in the rendered manpages. Grabed from git's Documentation/callouts.xsl file. From the git's commit 7ef0435088f41165ece95b6f226d3c15438505a5: This is just a random hack to work around problems people seem to be seeing in manpage backend of xmlto (it appears we are getting ".sp" at the end of line without line break). Additionally, output an empty line after literallayout blocks (.nf .fi) so that any text following it will appear in a separate block. --- Makefile | 4 ++-- manpage.xsl | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 manpage.xsl diff --git a/Makefile b/Makefile index 06a5d6a..f8e601d 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@ README.html: README asciidoc -b docbook -d manpage $< %.1 : %.1.xml - xmlto man $< + xmlto -m manpage.xsl man $< %.5.html : %.5.txt asciidoc -b xhtml11 -d manpage $< @@ -100,7 +100,7 @@ README.html: README asciidoc -b docbook -d manpage $< %.5 : %.5.xml - xmlto man $< + xmlto -m manpage.xsl man $< %.html : %.txt asciidoc -b xhtml11 -d article -n $< diff --git a/manpage.xsl b/manpage.xsl new file mode 100644 index 0000000..b01a958 --- /dev/null +++ b/manpage.xsl @@ -0,0 +1,55 @@ + + + + + .sp .nf + + .fi .sp + + + + + + + + + .sp + + + + + + + + + + + + + + + + + + + .sp + + + .nf + + + .fi + + + + + .sp + + + -- 2.30.2