Skip to content

Different row-spacing in footer with a dynamic page number field, causes the renderer to crash. #31

@erobwen

Description

@erobwen

If you create a footer with a different row spacing and a dynamic page numger field, the renderer will crash, similar to this:

Error
Index -2 out of bounds for length 37

Note: It will NOT crash if the dynamic field is in a header instead of a footer.

Here is a minimal obfl file that will trigger the crash.

    <obfl version="2011-1" hyphenate="{$hyphenate}" mark-capital-letters="{$mark-capital-letters}">
      <xsl:attribute name="xml:lang">
        <xsl:value-of select="$lang"/>
      </xsl:attribute>
      <layout-master duplex="false" inner-margin="2" name="main" outer-margin="2" page-height="28" page-width="32" row-spacing="2">
        <default-template>
          <footer row-spacing="1"> <!-- Row spacing crashes the renderer together with field below.  -->
            <field>
              <current-page number-format="default"/>
            </field> 
            <!-- Field above crashes the renderer together with row spacing.  -->
          </footer>
        </default-template>
      </layout-master>
      <sequence master="main">
        <block>
          <text>Test</text>
       </block>
      </sequence>
    </obfl>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions