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

Fix numeric literal formatting #40

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

fkleedorfer
Copy link
Contributor

Prior to this commit, in some situations, formatting changes the datatype of numeric literals (xsd:double and xsd:decimal). The change happens if the lexical form is ambiguous because it does not include a fractional part.

This commit checks for this condition and uses the quoted form in these cases.

Fixes #39

Prior to this commit, in some situations, formatting changes the datatype of numeric literals (xsd:double and xsd:decimal). The change happens if the lexical form is ambiguous because it does not include a fractional part.

This commit checks for this condition and uses the quoted form in these cases.
@fkleedorfer
Copy link
Contributor Author

@atextor I don't understand why the build failed. Anything I can do?

@atextor
Copy link
Owner

atextor commented Oct 30, 2024 via email

@fkleedorfer
Copy link
Contributor Author

It did.

@atextor
Copy link
Owner

atextor commented Nov 1, 2024

@fkleedorfer It turned out there was no actual reason the build failed other than some GitHub infrastructure hickup ("Error: The operation was cancelled"). I restarted the build and it went through without problems.

Copy link
Owner

@atextor atextor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@atextor atextor merged commit 16fb9f0 into atextor:main Nov 2, 2024
3 checks passed
@fkleedorfer
Copy link
Contributor Author

As always with a bugfix, a timely release will be highly appreciated!

Btw the spotles-maven-plugin has been released with a new RDF formatter based on turtle-formatter, just FYI

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

Successfully merging this pull request may close these issues.

Formatting changes datatype of some numeric literals
2 participants