From 1bc00d1f64fe704249fdefaccbeb595c0c7b32da Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 20 Feb 2008 11:42:45 +0000 Subject: [PATCH] Added the man.funcsynopsis.style parameter. Has the same effect in manpages output as the funcsynopsis.style parameter has in HTML output -- except that its default value is 'ansi' instead of 'kr'. --- xsl/manpages/param.ent | 1 + xsl/manpages/param.xweb | 5 +++++ xsl/manpages/pi.xsl | 2 +- xsl/manpages/synop.xsl | 2 +- xsl/params/man.funcsynopsis.style.xml | 26 ++++++++++++++++++++++++++ 5 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 xsl/params/man.funcsynopsis.style.xml diff --git a/xsl/manpages/param.ent b/xsl/manpages/param.ent index 7441d53ed..7d6671918 100644 --- a/xsl/manpages/param.ent +++ b/xsl/manpages/param.ent @@ -12,6 +12,7 @@ + diff --git a/xsl/manpages/param.xweb b/xsl/manpages/param.xweb index 46b683ff7..184cda5f3 100644 --- a/xsl/manpages/param.xweb +++ b/xsl/manpages/param.xweb @@ -53,6 +53,10 @@ &man.font.funcsynopsisinfo; &man.font.table.headings; &man.font.table.title; + + + SYNOPSIS section +&man.funcsynopsis.style; AUTHORS and COPYRIGHT sections @@ -159,6 +163,7 @@ + diff --git a/xsl/manpages/pi.xsl b/xsl/manpages/pi.xsl index c3e17632d..7b0975b83 100644 --- a/xsl/manpages/pi.xsl +++ b/xsl/manpages/pi.xsl @@ -65,7 +65,7 @@ - funcsynopsis.style + man.funcsynopsis.style diff --git a/xsl/manpages/synop.xsl b/xsl/manpages/synop.xsl index 0d4ebf642..6a8719683 100644 --- a/xsl/manpages/synop.xsl +++ b/xsl/manpages/synop.xsl @@ -249,7 +249,7 @@ - + diff --git a/xsl/params/man.funcsynopsis.style.xml b/xsl/params/man.funcsynopsis.style.xml new file mode 100644 index 000000000..0597087ba --- /dev/null +++ b/xsl/params/man.funcsynopsis.style.xml @@ -0,0 +1,26 @@ + + +man.funcsynopsis.style +list +ansi +kr + + +man.funcsynopsis.style +What style of funcsynopsis should be generated? + + +ansi + +Description +If man.funcsynopsis.style is +ansi, ANSI-style function synopses are +generated for a funcsynopsis, otherwise K&R-style +function synopses are generated. + + -- 2.40.0