]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Reverts the manpage xsl change from yesterday, which had unfortunate
authorRich Bowen <rbowen@apache.org>
Thu, 30 Apr 2026 12:15:46 +0000 (12:15 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 30 Apr 2026 12:15:46 +0000 (12:15 +0000)
side effects. I'm not sure what the right solution is here, but it's not
this. Perhaps someone else who understands manpage formatting better can
have a look at this.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933583 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/nroff.xsl

index ecd78c8c03741a35f0d47bf7d19f9f660f735695..e1538f4323a77669a704ab15cfffe1127c493e43 100644 (file)
 <xsl:apply-templates select="summary" />&lf;
 <xsl:apply-templates select="section[@id!='synopsis']" />&lf;
 
-<!-- SEE ALSO section from seealso elements -->
-<xsl:if test="seealso">
-<xsl:text>.SH "SEE ALSO"</xsl:text>&lf;
-<xsl:for-each select="seealso">
-<xsl:apply-templates select="." mode="seealso" />
-<xsl:if test="position() != last()">, </xsl:if>
-</xsl:for-each>&lf;
-</xsl:if>
 </xsl:template>
 <!-- /manualpage -->
 
 <!-- <strong>                                                             -->
 <!-- show it somewhat special (bold)                                      -->
 <!-- ==================================================================== -->
-<xsl:template match="strong|code">
+<xsl:template match="strong|code|program">
 <xsl:text>\fB</xsl:text>
     <xsl:apply-templates />
 <xsl:text>\fR</xsl:text>
@@ -382,7 +374,7 @@ FATAL: only tables with two (2) columns are supported.
 <!-- ==================================================================== -->
 <!-- pass through content                                                 -->
 <!-- ==================================================================== -->
-<xsl:template match="a|module|table|program|glossary|highlight|rfc">
+<xsl:template match="a|module|table|glossary|highlight|rfc">
 <xsl:apply-templates />
 </xsl:template>
 
@@ -390,19 +382,9 @@ FATAL: only tables with two (2) columns are supported.
 <!-- ==================================================================== -->
 <!-- remove some stuff from the output                                    -->
 <!-- ==================================================================== -->
-<xsl:template match="parentdocument|dd|td|example/br|dd/br" />
+<xsl:template match="parentdocument|seealso|dd|td|example/br|dd/br" />
 
-<!-- suppress seealso in normal flow (rendered separately in SEE ALSO) -->
-<xsl:template match="seealso" />
 
-<!-- ==================================================================== -->
-<!-- seealso mode: extract plain text for SEE ALSO section                -->
-<!-- ==================================================================== -->
-<xsl:template match="seealso" mode="seealso">
-<xsl:variable name="text" select="normalize-space(.)" />
-<xsl:text>
-</xsl:text><xsl:value-of select="$text" />
-</xsl:template>
 
 
 <!-- ==================================================================== -->