2016-01-20 157 views
1

在我的样式表的注脚,我用的模板,三个层次的嵌套列表:XSL-FO - 在列表

● level 1 
    ▲ level 2 
    ○ level 3 

这是很常见的使用列表内的注脚。问题是,在某种程度上这样的注脚继承列表中的缩进:

enter image description here

我已经试过几乎所有的东西,使用start-indent的注脚列表内治疗的空白。没什么帮助。是否有任何特定属性可用于忽略父级的缩进?

代码为footnote-body

<fo:footnote-body> 
    <fo:block font-family="{$serif}" font-size="11pt" line-height="1.5" text-align="left" margin-left="0pt" text-indent="7pt"> 
    <fo:inline font-size="70%" baseline-shift="super" color="red"> 
     <xsl:call-template name="calculateFootnoteNumber"/> 
    </fo:inline> 
    <xsl:text> </xsl:text> 
    <xsl:call-template name="footPars"/> 
    </fo:block> 
</fo:footnote-body> 

回答

1

哦,很明显:

<fo:footnote-body> 
      <fo:block font-family="{$serif}" font-size="11pt" line-height="1.5" text-align="left" margin-left="0pt" text-indent="0"> 
       <fo:inline font-size="70%" baseline-shift="super" color="red"> 
        <xsl:call-template name="calculateFootnoteNumber"/> 
       </fo:inline> 
       <xsl:text> </xsl:text> 
       <xsl:call-template name="footPars"/> 
      </fo:block> 
     </fo:footnote-body> 

margin-left="0pt"text-indent="0"对联做正确的事!在text-indent之前是7pt。将其设置为0有帮助。