Donate Share

Useful Java Application Components

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

<paragraph leading="?">

You are viewing a single message from this topic. View all messages.

  1. 2009-08-27 09:34:23 UTC
    Hi,

    To accomplish this you can create a property value for the leading and then change that in the loop. E.g.

    <set-property name="myleading" type="float" value="7.0"/>
    <for-each loop-variable="x" sequence="1-10">
    <paragraph leading="${myleading}">your paragraph[x] here</paragraph>
    <set-property name="myleading" type="float" value="0.0"/>
    </for-each>

    Incidentally I'm not sure that "leading" is the right attribute - that defines the space between lines of text and will affect the spacing of all lines in the paragraph. You might want to look at the "spacing-before" attribute.

    Regards
    Martin
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.