]> granicus.if.org Git - docbook-dsssl/commitdiff
Problem:
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 17 Oct 2005 04:40:46 +0000 (04:40 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 17 Oct 2005 04:40:46 +0000 (04:40 +0000)
In a PDF generated with Passivetex, every itemizedlist (bulleted
list) has a linebreak after the bullet and before the listem
contents. That bullet should not be there.

Cause:
Design problem in Passivetex

Fix:
Added a fix that works around the problem by not wrapping the
listem output in an <fo:block> if passivetex.extensions=1. Closes
#1328348.

Affects:
Only affects output if passivetex.extensions=1. Otherwise,
follows previous code path, so behavior is exactly the same.

xsl/fo/lists.xsl

index a81c8465aa91303cf892cf6138a4429d9e19a576..70d5344e48207d73c7cbf650bf5612ec9028cfa0 100644 (file)
       </fo:block>
     </fo:list-item-label>
     <fo:list-item-body start-indent="body-start()">
-      <fo:block>
-        <xsl:apply-templates/>
-      </fo:block>
+      <xsl:choose>
+        <!-- * work around broken passivetex list-item-body rendering -->
+        <xsl:when test="$passivetex.extensions = '1'">
+          <xsl:apply-templates/>
+        </xsl:when>
+        <xsl:otherwise>
+          <fo:block>
+            <xsl:apply-templates/>
+          </fo:block>
+        </xsl:otherwise>
+      </xsl:choose>
     </fo:list-item-body>
   </xsl:variable>