aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2024-09-18 16:34:51 -0400
committerBruce Momjian <bruce@momjian.us>2024-09-18 16:34:51 -0400
commit49f2650e8c208640f91716c5ac31d588410e70ab (patch)
tree54e9f3e222e85f619f851aba4327fdea8ba3c02a
parent884860bfc0286ca35f7c097c2511bad90f4ede07 (diff)
downloadpostgresql-49f2650e8c208640f91716c5ac31d588410e70ab.tar.gz
postgresql-49f2650e8c208640f91716c5ac31d588410e70ab.zip
doc PG relnotes: no relnote footnotes for commit links in PDF
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
-rw-r--r--doc/src/sgml/stylesheet-fo.xsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/src/sgml/stylesheet-fo.xsl b/doc/src/sgml/stylesheet-fo.xsl
index 0c4dff92c46..6eadfc58267 100644
--- a/doc/src/sgml/stylesheet-fo.xsl
+++ b/doc/src/sgml/stylesheet-fo.xsl
@@ -10,6 +10,12 @@
<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>