Skip to content

Commit 8081e54

Browse files
committed
Clean up order in stylesheete-fo.xsl
Make a separate section for release notes customization. Commits f986882 and 8a6e85b put those into the middle of unrelated things.
1 parent 783cbb6 commit 8081e54

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

doc/src/sgml/stylesheet-fo.xsl

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,6 @@
1414
<xsl:param name="tablecolumns.extension" select="0"></xsl:param>
1515
<xsl:param name="toc.max.depth">3</xsl:param>
1616
<xsl:param name="ulink.footnotes" select="1"></xsl:param>
17-
18-
<!-- The release notes have too many ulinks to look good as footnotes in print mode -->
19-
<xsl:template match="sect1[starts-with(@id, 'release-')]//ulink[starts-with(@url, 'https://postgr.es/c/')]">
20-
<!-- Do nothing for ulink to avoid footnotes -->
21-
</xsl:template>
22-
23-
<!--
24-
Suppress the description of the commit link markers in print mode.
25-
Use "node()" to keep the paragraph but remove all content; prevents
26-
an "Unresolved ID reference found" warning during PDF builds.
27-
-->
28-
<xsl:template match="appendix[@id='release']//para[@id='release-commit-links']//node()">
29-
<!-- Output an empty para -->
30-
</xsl:template>
31-
3217
<xsl:param name="use.extensions" select="1"></xsl:param>
3318
<xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
3419
<xsl:param name="orderedlist.label.width">1.5em</xsl:param>
@@ -415,5 +400,21 @@ an "Unresolved ID reference found" warning during PDF builds.
415400

416401
</xsl:template>
417402

403+
<!-- special release notes formatting -->
404+
405+
<!-- The release notes have too many ulinks to look good as footnotes in print mode -->
406+
<xsl:template match="sect1[starts-with(@id, 'release-')]//ulink[starts-with(@url, 'https://postgr.es/c/')]">
407+
<!-- Do nothing for ulink to avoid footnotes -->
408+
</xsl:template>
409+
410+
<!--
411+
Suppress the description of the commit link markers in print mode.
412+
Use "node()" to keep the paragraph but remove all content; prevents
413+
an "Unresolved ID reference found" warning during PDF builds.
414+
-->
415+
<xsl:template match="appendix[@id='release']//para[@id='release-commit-links']//node()">
416+
<!-- Output an empty para -->
417+
</xsl:template>
418+
418419

419420
</xsl:stylesheet>

0 commit comments

Comments
 (0)