18241
|
1 |
diff -ruNp docbook-xsl-1.74.0.orig/fo/lists.xsl docbook-xsl-1.74.0/fo/lists.xsl
|
|
2 |
--- docbook-xsl-1.74.0.orig/fo/lists.xsl 2008-08-06 13:32:46.000000000 +0200
|
|
3 |
+++ docbook-xsl-1.74.0/fo/lists.xsl 2008-08-06 13:41:27.000000000 +0200
|
|
4 |
@@ -248,9 +248,17 @@
|
|
5 |
</fo:block>
|
|
6 |
</fo:list-item-label>
|
|
7 |
<fo:list-item-body start-indent="body-start()">
|
|
8 |
- <fo:block>
|
|
9 |
- <xsl:apply-templates/>
|
|
10 |
- </fo:block>
|
|
11 |
+ <xsl:choose>
|
|
12 |
+ <!-- * work around broken passivetex list-item-body rendering -->
|
|
13 |
+ <xsl:when test="$passivetex.extensions = '1'">
|
|
14 |
+ <xsl:apply-templates/>
|
|
15 |
+ </xsl:when>
|
|
16 |
+ <xsl:otherwise>
|
|
17 |
+ <fo:block>
|
|
18 |
+ <xsl:apply-templates/>
|
|
19 |
+ </fo:block>
|
|
20 |
+ </xsl:otherwise>
|
|
21 |
+ </xsl:choose>
|
|
22 |
</fo:list-item-body>
|
|
23 |
</xsl:variable>
|
|
24 |
|
|
25 |
@@ -446,10 +454,18 @@
|
|
26 |
</fo:block>
|
|
27 |
</fo:list-item-label>
|
|
28 |
<fo:list-item-body start-indent="body-start()">
|
|
29 |
- <fo:block>
|
|
30 |
- <xsl:apply-templates select="listitem"/>
|
|
31 |
- </fo:block>
|
|
32 |
- </fo:list-item-body>
|
|
33 |
+ <xsl:choose>
|
|
34 |
+ <!-- * work around broken passivetex list-item-body rendering -->
|
|
35 |
+ <xsl:when test="$passivetex.extensions = '1'">
|
|
36 |
+ <xsl:apply-templates select="listitem"/>
|
|
37 |
+ </xsl:when>
|
|
38 |
+ <xsl:otherwise>
|
|
39 |
+ <fo:block>
|
|
40 |
+ <xsl:apply-templates select="listitem"/>
|
|
41 |
+ </fo:block>
|
|
42 |
+ </xsl:otherwise>
|
|
43 |
+ </xsl:choose>
|
|
44 |
+ </fo:list-item-body>
|
|
45 |
</xsl:variable>
|
|
46 |
|
|
47 |
<xsl:choose>
|
|
48 |
@@ -925,9 +941,17 @@
|
|
49 |
</fo:block>
|
|
50 |
</fo:list-item-label>
|
|
51 |
<fo:list-item-body start-indent="body-start()">
|
|
52 |
- <fo:block>
|
|
53 |
- <xsl:apply-templates/>
|
|
54 |
- </fo:block>
|
|
55 |
+ <xsl:choose>
|
|
56 |
+ <!-- * work around broken passivetex list-item-body rendering -->
|
|
57 |
+ <xsl:when test="$passivetex.extensions = '1'">
|
|
58 |
+ <xsl:apply-templates/>
|
|
59 |
+ </xsl:when>
|
|
60 |
+ <xsl:otherwise>
|
|
61 |
+ <fo:block>
|
|
62 |
+ <xsl:apply-templates/>
|
|
63 |
+ </fo:block>
|
|
64 |
+ </xsl:otherwise>
|
|
65 |
+ </xsl:choose>
|
|
66 |
</fo:list-item-body>
|
|
67 |
</fo:list-item>
|
|
68 |
</xsl:template>
|
|
69 |
@@ -951,9 +975,17 @@
|
|
70 |
</fo:block>
|
|
71 |
</fo:list-item-label>
|
|
72 |
<fo:list-item-body start-indent="body-start()">
|
|
73 |
- <fo:block>
|
|
74 |
- <xsl:apply-templates/>
|
|
75 |
- </fo:block>
|
|
76 |
+ <xsl:choose>
|
|
77 |
+ <!-- * work around broken passivetex list-item-body rendering -->
|
|
78 |
+ <xsl:when test="$passivetex.extensions = '1'">
|
|
79 |
+ <xsl:apply-templates/>
|
|
80 |
+ </xsl:when>
|
|
81 |
+ <xsl:otherwise>
|
|
82 |
+ <fo:block>
|
|
83 |
+ <xsl:apply-templates/>
|
|
84 |
+ </fo:block>
|
|
85 |
+ </xsl:otherwise>
|
|
86 |
+ </xsl:choose>
|
|
87 |
</fo:list-item-body>
|
|
88 |
</fo:list-item>
|
|
89 |
</xsl:template>
|
|
90 |
@@ -1141,9 +1173,17 @@
|
|
91 |
</fo:block>
|
|
92 |
</fo:list-item-label>
|
|
93 |
<fo:list-item-body start-indent="body-start()">
|
|
94 |
- <fo:block>
|
|
95 |
- <xsl:apply-templates/>
|
|
96 |
- </fo:block>
|
|
97 |
+ <xsl:choose>
|
|
98 |
+ <!-- * work around broken passivetex list-item-body rendering -->
|
|
99 |
+ <xsl:when test="$passivetex.extensions = '1'">
|
|
100 |
+ <xsl:apply-templates/>
|
|
101 |
+ </xsl:when>
|
|
102 |
+ <xsl:otherwise>
|
|
103 |
+ <fo:block>
|
|
104 |
+ <xsl:apply-templates/>
|
|
105 |
+ </fo:block>
|
|
106 |
+ </xsl:otherwise>
|
|
107 |
+ </xsl:choose>
|
|
108 |
</fo:list-item-body>
|
|
109 |
</fo:list-item>
|
|
110 |
</xsl:template>
|