Improve layout of listings and long URL's
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 Feb 2007 17:27:57 +0000 (17:27 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 Feb 2007 17:27:57 +0000 (17:27 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20697 f5534014-38df-0310-8fa8-9805f1628bb7

docbook/custom_layer_pdf.xsl

index 19f789f25ae565ea8ec5bf913c3368b5e1d3383f..357f64ded0b8661847580cc37839e1f8d3159396 100644 (file)
@@ -33,7 +33,8 @@
 
 <!-- hyphenate URL's after the slash -->
 <!-- (http://docbook.sourceforge.net/release/xsl/current/doc/fo/ulink.hyphenate.html) -->
-<xsl:param name="ulink.hyphenate" select="'&#x200b;'"></xsl:param>
+<xsl:param name="ulink.hyphenate.chars" select="'/:'"></xsl:param>
+<xsl:param name="ulink.hyphenate" select="'&#x200B;'"></xsl:param>
 
 <!-- don't allow section titles to be hyphenated -->
 <xsl:attribute-set name="section.title.properties">
@@ -51,4 +52,9 @@
   <xsl:attribute name="text-decoration">underline</xsl:attribute>
 </xsl:attribute-set>
 
+<!-- reduce the size of programlisting to make them fit the page -->
+<xsl:attribute-set name="monospace.verbatim.properties">
+  <xsl:attribute name="font-size">80%</xsl:attribute>
+</xsl:attribute-set>
+
 </xsl:stylesheet>