Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parshape broken #89

Closed
pgundlach opened this issue Jun 25, 2016 · 0 comments
Closed

parshape broken #89

pgundlach opened this issue Jun 25, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@pgundlach
Copy link
Member

Version 2.5.5

<Layout version="2.5.5"
    xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">

    <Options show-gridallocation="yes" show-grid="yes" />
    <Pageformat width="148mm" height="50mm" />
    <SetGrid nx="25" height="6pt"/>
    <Record element="data">
        <NextRow row="2"/>
        <PlaceObject row="2" column="13">
            <Box width="13" height="4" backgroundcolor="green"/>
        </PlaceObject>

        <Output allocate="auto" row="1">
            <Text>
                <Paragraph fontface="text"><Value>xx</Value></Paragraph>
                <Paragraph fontface="text"><Value>xx</Value></Paragraph>
            </Text>
        </Output>
        <Message select="sd:current-row()"></Message>
        <Output allocate="auto" row="{sd:current-row()}">
            <Text>
                <Paragraph fontface="text"><Value>yyyyy</Value></Paragraph>
                <Paragraph fontface="text"><Value>yyyyy</Value></Paragraph>
            </Text>
        </Output>
    </Record>
</Layout>

sp --dummy gives

parshape

I'd expect left aligned text yyyy (both lines)

@pgundlach pgundlach added the Bug label Jun 25, 2016
@pgundlach pgundlach added this to the Version 2.6 milestone Jun 25, 2016
@pgundlach pgundlach self-assigned this Jun 25, 2016
pgundlach added a commit that referenced this issue Jun 25, 2016
When an object is not placed in the first row, the paragraph shape
algorithm thinks the first row is the next row to take into
account.


This fixes bug #89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant