speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
296 stars 36 forks source link

Regression: NoBreak can only have one Value child #455

Closed iclukas closed 1 year ago

iclukas commented 1 year ago

Somewhere between v4.0.1 and v4.2.0 there was a regression with the <NoBreak> element. It used to work with multiple <Value> children, but now sp will just crash. Might be related to #410

This example works with 4.0.1 but crashes 4.2.0 and later:

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

    <Record element="data">
        <PlaceObject>
            <Textblock width="5" height="2">
                <Paragraph>
                    <NoBreak reduce="fontsize">
                        <Value>lorem</Value><Value> ipsum</Value>
                    </NoBreak>
                </Paragraph>
            </Textblock>
        </PlaceObject>
    </Record>
</Layout>
pgundlach commented 1 year ago

Thank you very much for the bug report.

(this is not easy to fix....)