summaryrefslogtreecommitdiff
path: root/doc/xorg-fo.xsl
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-24 21:25:06 -0800
committerKeith Packard <keithp@keithp.com>2013-11-24 21:25:06 -0800
commit96f33e780958adaaa4a9cc127caecaeb3f4c978c (patch)
tree050128d23d91669e1e364047425e82b4224ad684 /doc/xorg-fo.xsl
parent3eaaefe6d746a2f53995a2470c5024f37c87c393 (diff)
Remove duplicate log description. Describe pyro config.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'doc/xorg-fo.xsl')
-rw-r--r--doc/xorg-fo.xsl22
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/xorg-fo.xsl b/doc/xorg-fo.xsl
index 26728d50..a02ad1ea 100644
--- a/doc/xorg-fo.xsl
+++ b/doc/xorg-fo.xsl
@@ -7,7 +7,11 @@
http://docbook.sourceforge.net/release/xsl/current/doc/fo/
-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+<xsl:stylesheet
+ version='1.0'
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ >
<xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl"/>
@@ -94,4 +98,20 @@
<xsl:param name="body.font.family">DejaVu Serif</xsl:param>
<xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>
+
+ <!-- Paragraph template bits -->
+
+ <!-- make it possible to turn off hyphenation when it's giving us probs -->
+ <xsl:template match="para[@hyphenate='false']">
+ <fo:block hyphenate="false" xsl:use-attribute-sets="normal.para.spacing">
+ <xsl:call-template name="anchor"/>
+ <xsl:apply-templates/>
+ </fo:block>
+ </xsl:template>
+
+ <!-- force line break -->
+ <xsl:template match="processing-instruction('linebreak')">
+ <fo:block/>
+ </xsl:template>
+
</xsl:stylesheet>