summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2024-09-18 20:34:52 +0000
committerBruce Momjian2024-09-18 20:34:52 +0000
commitf986882ffd67a4a2560b5cbd9056fc70d0c69209 (patch)
tree1d0bb7514173857cd200b04a34908a980414aff0
parentb52c4fc3c09ec0ec9c1f9aa676f6d74304cc2f6f (diff)
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/[email protected] 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 3a4a88a7288..739958bb804 100644
--- a/doc/src/sgml/stylesheet-fo.xsl
+++ b/doc/src/sgml/stylesheet-fo.xsl
@@ -14,6 +14,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>