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

Regression: NoBreak can only have one Value child #455

Closed
iclukas opened this issue Jan 17, 2023 · 1 comment
Closed

Regression: NoBreak can only have one Value child #455

iclukas opened this issue Jan 17, 2023 · 1 comment
Assignees
Labels

Comments

@iclukas
Copy link
Contributor

iclukas commented Jan 17, 2023

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 pgundlach self-assigned this Jan 17, 2023
@pgundlach pgundlach added the Bug label Jan 17, 2023
@pgundlach
Copy link
Member

Thank you very much for the bug report.

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

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

2 participants