Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
doc PG relnotes: remove warning about commit links in PDF build
authorBruce Momjian <bruce@momjian.us>
Thu, 19 Sep 2024 22:05:21 +0000 (18:05 -0400)
committerBruce Momjian <bruce@momjian.us>
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 623b460925a71cf02737291980eb7c78336dd7ef..f055054642de2f053ddab72e5b039a1d1924d6bc 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>