Commit 7a2078b4 authored by Jonas Fonseca's avatar Jonas Fonseca Committed by Junio C Hamano

man pages are littered with .ft C and others

Jakub Narebski <[email protected]> wrote Sun, Feb 03, 2008:
> Junio C Hamano wrote:
> > Jakub Narebski <[email protected]> writes:
> >
> > [From]
> Julian Phillips:
> > Are you using docbook xsl 1.72?  There are known problems building the
> > manpages with that version.  1.71 works, and 1.73 should work when it get
> > released.

I was able to solve this problem with this patch, which adds a XSL file
used specifically for DOCBOOK_XSL_172=YesPlease and where dots and
backslashes are escaped properly so they won't be substituted to the
wrong thing further down the "DocBook XSL pipeline". Doing the escaping
in the existing callout.xsl breaks v1.70.1. Hopefully v1.73 will end
this part of the manpage nightmare.
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent 4f395eed
......@@ -45,6 +45,7 @@ man7dir=$(mandir)/man7
MANPAGE_XSL = callouts.xsl
RM ?= rm -f
DOC_REF = origin/man
......@@ -65,6 +66,7 @@ ASCIIDOC_EXTRA += -a asciidoc7compatible
ifdef DOCBOOK_XSL_172
ASCIIDOC_EXTRA += -a docbook-xsl-172
MANPAGE_XSL = manpage-1.72.xsl
......@@ -159,7 +161,7 @@ $(MAN_HTML): %.html : %.txt
%.1 %.5 %.7 : %.xml
$(RM) [email protected]
xmlto -m callouts.xsl man $<
xmlto -m $(MANPAGE_XSL) man $<
%.xml : %.txt
$(RM) [email protected]+ [email protected]
<!-- callout.xsl: converts asciidoc callouts to man page format -->
<xsl:stylesheet xmlns:xsl="" version="1.0">
<xsl:template match="co">
<xsl:value-of select="concat('&#x2593;fB(',substring-after(@id,'-'),')&#x2593;fR')"/>
<xsl:template match="calloutlist">
<xsl:template match="callout">
<xsl:value-of select="concat('&#x2593;fB',substring-after(@arearefs,'-'),'. &#x2593;fR')"/>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment