doc PG relnotes: remove warning about commit links in PDF build
authorBruce Momjian <[email protected]>
Thu, 19 Sep 2024 22:05:22 +0000 (18:05 -0400)
committerBruce Momjian <[email protected]>
Thu, 19 Sep 2024 22:05:22 +0000 (18:05 -0400)
Make paragraph empty instead of removing it.

Discussion: https://postgr.es/m/2029579.1726779139@sss.pgh.pa.us

Backpatch-through: 12

doc/src/sgml/stylesheet-fo.xsl

index bb22a92d0af0a1f93151d542f285a99923f67f30..e7916a6a88347a6777f0b1383e604e71db1962a8 100644 (file)
 
 <!--
 Suppress the description of the commit link markers in print mode.
-Caues an "Unresolved ID reference found" warning during PDF builds
-because the paragraph is suppressed in the output.
+Use "node()" to keep the paragraph but remove all content;  prevents
+an "Unresolved ID reference found" warning during PDF builds.
 -->
-<xsl:template match="appendix[@id='release']//para[@id='release-commit-links']">
-  <!-- Output nothing for this para -->
+<xsl:template match="appendix[@id='release']//para[@id='release-commit-links']//node()">
+  <!-- Output an empty para -->
 </xsl:template>
 
 <xsl:param name="use.extensions" select="1"></xsl:param>