doc/PDF: Add page breaks for <sect1> in contrib appendix
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 20 Mar 2023 13:01:09 +0000 (14:01 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 20 Mar 2023 13:01:09 +0000 (14:01 +0100)
This better separates the content for each extension/module.

Author: Karl Pinc <kop@karlpinc.com>
Discussion: https://postgr.es/m/20230120142225.3d3be8a3@slate.karlpinc.com

doc/src/sgml/stylesheet-fo.xsl

index 0c4dff92c46d35de5121f6037d858aa670117ecd..5e7e132480335bf63a27524263e694ea21aff412 100644 (file)
   </fo:inline>
 </xsl:template>
 
+<!-- Make every sect1 in contrib get a page break -->
+<xsl:template match="id('contrib')/sect1">
+  <fo:block break-after='page'/>
+  <xsl:apply-imports/>
+</xsl:template>
+
 <!-- formatting for entries in tables of functions -->
 <xsl:template match="entry[@role='func_table_entry']/para">
   <fo:block margin-left="4em" text-align="left">