doc PG relnotes: no relnote footnotes for commit links in PDF
authorBruce Momjian <[email protected]>
Wed, 18 Sep 2024 20:34:52 +0000 (16:34 -0400)
committerBruce Momjian <[email protected]>
Wed, 18 Sep 2024 20:34:52 +0000 (16:34 -0400)
In print output, there are too many commit links for footnotes in the
release notes to be useful.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/1709858.1726618961@sss.pgh.pa.us

Backpatch-through: 12

doc/src/sgml/stylesheet-fo.xsl

index 3a4a88a728853cc09a33e5dbdcf07f571df45d93..739958bb804d1556bade36dcc7627679c35382cc 100644 (file)
 <xsl:param name="tablecolumns.extension" select="0"></xsl:param>
 <xsl:param name="toc.max.depth">3</xsl:param>
 <xsl:param name="ulink.footnotes" select="1"></xsl:param>
+
+<!-- The release notes have too many ulinks to look good as footnotes in print mode -->
+<xsl:template match="sect1[starts-with(@id, 'release-')]//ulink[starts-with(@url, 'https://postgr.es/c/')]">
+  <!-- Do nothing for ulink to avoid footnotes -->
+</xsl:template>
+
 <xsl:param name="use.extensions" select="1"></xsl:param>
 <xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
 <xsl:param name="orderedlist.label.width">1.5em</xsl:param>