aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-07-21 17:13:29 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-07-21 17:13:29 +0000
commit6d2158a428cd9d6a7caebb7185b0b78791e246df (patch)
tree3618db92175c5c7a648b37ab4f019aa19120ffce
parent0db1b886b0b4dfb863ae67933f0a77136b77a828 (diff)
downloaddoc-6d2158a428cd9d6a7caebb7185b0b78791e246df.tar.gz
doc-6d2158a428cd9d6a7caebb7185b0b78791e246df.zip
- Stick captions where they belong
Notes
Notes: svn path=/projects/db5/; revision=42352
-rw-r--r--share/xsl/freebsd-fo.xsl16
1 files changed, 12 insertions, 4 deletions
diff --git a/share/xsl/freebsd-fo.xsl b/share/xsl/freebsd-fo.xsl
index 80233a2b52..be60f0cbf1 100644
--- a/share/xsl/freebsd-fo.xsl
+++ b/share/xsl/freebsd-fo.xsl
@@ -279,14 +279,22 @@
<xsl:choose>
<xsl:when test="$placement = 'before'">
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
- <xsl:attribute name="space-before">12pt</xsl:attribute>
- <xsl:attribute name="space-after">3pt</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">12pt</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">12pt</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">12pt</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>
- <xsl:attribute name="space-before">3pt</xsl:attribute>
- <xsl:attribute name="space-after">12pt</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">0</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">12pt</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">12pt</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">12pt</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="$object" mode="object.title.markup">