doc PG relnotes: remove warning about commit links in PDF build
authorBruce Momjian <[email protected]>
Thu, 19 Sep 2024 22:05:21 +0000 (18:05 -0400)
committerBruce Momjian <[email protected]>
Thu, 19 Sep 2024 22:05:21 +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 52a3aaa3cd46f3f84a82beb4d9e345ce4cb6dd74..19f54daaa8fe4b3adc072b5038fd6c421d3d084e 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>