diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:39:52 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:39:52 +0000 |
commit | 4d4512e6c85da2a469e8bac803d9091c21eda7e4 (patch) | |
tree | 32d2c356c8fca3ddda4b9ac5db4eba46d32c7504 /docbook-xsl-list-item-body.patch | |
parent | baf0cacf0a22fdd51579e20f6bd95c5538a39532 (diff) |
automatic import of docbook-style-xslopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'docbook-xsl-list-item-body.patch')
-rw-r--r-- | docbook-xsl-list-item-body.patch | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/docbook-xsl-list-item-body.patch b/docbook-xsl-list-item-body.patch new file mode 100644 index 0000000..a3d3819 --- /dev/null +++ b/docbook-xsl-list-item-body.patch @@ -0,0 +1,110 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/lists.xsl docbook-xsl-1.74.0/fo/lists.xsl +--- docbook-xsl-1.74.0.orig/fo/lists.xsl 2008-08-06 13:32:46.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/lists.xsl 2008-08-06 13:41:27.000000000 +0200 +@@ -248,9 +248,17 @@ + </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> + +@@ -446,10 +454,18 @@ + </fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> +- <fo:block> +- <xsl:apply-templates select="listitem"/> +- </fo:block> +- </fo:list-item-body> ++ <xsl:choose> ++ <!-- * work around broken passivetex list-item-body rendering --> ++ <xsl:when test="$passivetex.extensions = '1'"> ++ <xsl:apply-templates select="listitem"/> ++ </xsl:when> ++ <xsl:otherwise> ++ <fo:block> ++ <xsl:apply-templates select="listitem"/> ++ </fo:block> ++ </xsl:otherwise> ++ </xsl:choose> ++ </fo:list-item-body> + </xsl:variable> + + <xsl:choose> +@@ -925,9 +941,17 @@ + </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> + </fo:list-item> + </xsl:template> +@@ -951,9 +975,17 @@ + </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> + </fo:list-item> + </xsl:template> +@@ -1141,9 +1173,17 @@ + </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> + </fo:list-item> + </xsl:template> |