You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "zhangcui (JIRA)" <ji...@apache.org> on 2015/02/27 04:28:04 UTC
[jira] [Created] (FOP-2453) fo:list-item-label Automatically wrap
when it contains japanese character
zhangcui created FOP-2453:
-----------------------------
Summary: fo:list-item-label Automatically wrap when it contains japanese character
Key: FOP-2453
URL: https://issues.apache.org/jira/browse/FOP-2453
Project: Fop
Issue Type: Bug
Reporter: zhangcui
<xsl:variable name="aa">
<xsl:value-of select="string-length('1ff章2') + 10" />
<xsl:value-of select="'mm'" />
</xsl:variable>
<fo:table>
<fo:table-column column-number="1" />
<fo:table-body>
<fo:table-row >
<fo:table-cell>
<fo:list-block>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:value-of select="'1ff章2'" />
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="{$aa}">
<fo:block><xsl:value-of select="'HH1'" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="{$startIndent}">
<fo:block><xsl:value-of select="'HH2'" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
it should be
1ff章2---HH1
-----------HH2
but the result is
1ff---HH1
章
2
-------HH2
and if change the '1ff章2' to '1fff6662',it goes well.
if do not use the fo:list-block,like this
<fo:table-cell>
<fo:block>
<xsl:value-of select="'1ff章2'" />
</fo:block>
</fo:table-cell>
the '1ff章2'display in a line,do not wrap.
i cannot find the reason.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)