diff options
Diffstat (limited to 'stylesheets')
-rw-r--r-- | stylesheets/lfs.css | 3 | ||||
-rw-r--r-- | stylesheets/pdf/lfs-mixed.xsl | 70 |
2 files changed, 43 insertions, 30 deletions
diff --git a/stylesheets/lfs.css b/stylesheets/lfs.css index 968ebcbb7..29ef4423b 100644 --- a/stylesheets/lfs.css +++ b/stylesheets/lfs.css @@ -213,6 +213,9 @@ div.variablelist dd { div.variablelist dd p { margin-top: 0px; + margin-bottom: 0px; + padding-top: 0px; + padding-bottom: 0px; } div.materials dd { diff --git a/stylesheets/pdf/lfs-mixed.xsl b/stylesheets/pdf/lfs-mixed.xsl index 065128f1b..ac096e5c9 100644 --- a/stylesheets/pdf/lfs-mixed.xsl +++ b/stylesheets/pdf/lfs-mixed.xsl @@ -5,14 +5,15 @@ version="1.0"> - <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage - tags should be placed in the XML source only to render the PDF output and + <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage + tags should be placed in the XML source only to render the PDF output and should be removed after it. But there is no a better way and we need this.--> <xsl:template match="beginpage"> <fo:block break-after="page"/> </xsl:template> - - <!-- Allow forced line breaks inside paragraphs emulating literallayout. --> + + <!-- Allow forced line breaks inside paragraphs emulating literallayout + and to remove vertical space in pachages and patches pages. --> <xsl:template match="para"> <xsl:choose> <xsl:when test="./@remap='verbatim'"> @@ -25,6 +26,15 @@ <xsl:apply-templates/> </fo:block> </xsl:when> + <xsl:when test="ancestor::variablelist/@role = 'materials'"> + <fo:block> + <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute> + <xsl:attribute name="space-before.minimum">0em</xsl:attribute> + <xsl:attribute name="space-before.maximum">0.2em</xsl:attribute> + <xsl:call-template name="anchor"/> + <xsl:apply-templates/> + </fo:block> + </xsl:when> <xsl:otherwise> <xsl:apply-imports/> </xsl:otherwise> @@ -217,31 +227,31 @@ <!-- Addibg a bullet, and left alignament, for packages and paches list. --> -<xsl:template match="varlistentry" mode="vl.as.blocks"> - <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> - <xsl:choose> - <xsl:when test="ancestor::variablelist/@role = 'materials'"> - <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" - keep-together.within-column="always" - keep-with-next.within-column="always" text-align="left"> - <xsl:text>• </xsl:text> - <xsl:apply-templates select="term"/> - </fo:block> - <fo:block margin-left="1.4pc" text-align="left"> - <xsl:apply-templates select="listitem"/> - </fo:block> - </xsl:when> - <xsl:otherwise> - <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" - keep-together.within-column="always" - keep-with-next.within-column="always"> - <xsl:apply-templates select="term"/> - </fo:block> - <fo:block margin-left="0.25in"> - <xsl:apply-templates select="listitem"/> - </fo:block> - </xsl:otherwise> - </xsl:choose> -</xsl:template> + <xsl:template match="varlistentry" mode="vl.as.blocks"> + <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> + <xsl:choose> + <xsl:when test="ancestor::variablelist/@role = 'materials'"> + <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" + keep-together.within-column="always" + keep-with-next.within-column="always" text-align="left"> + <xsl:text>• </xsl:text> + <xsl:apply-templates select="term"/> + </fo:block> + <fo:block margin-left="1.4pc" text-align="left"> + <xsl:apply-templates select="listitem"/> + </fo:block> + </xsl:when> + <xsl:otherwise> + <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" + keep-together.within-column="always" + keep-with-next.within-column="always"> + <xsl:apply-templates select="term"/> + </fo:block> + <fo:block margin-left="0.25in"> + <xsl:apply-templates select="listitem"/> + </fo:block> + </xsl:otherwise> + </xsl:choose> + </xsl:template> </xsl:stylesheet> |