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

Date format is corrupted by non-breaking space #9

Closed
Jones-S opened this issue Apr 19, 2020 · 3 comments
Closed

Date format is corrupted by non-breaking space #9

Jones-S opened this issue Apr 19, 2020 · 3 comments

Comments

@Jones-S
Copy link

Jones-S commented Apr 19, 2020

Unfortunately the rest plugin does add a non-breaking space to a date field's return value:
image

This   is a non breaking space and it is not present if I access the endpoint without /rest
image

Just to tell you. I guess this could be classified as bug.
cheers

@robinscholz robinscholz added bug Something isn't working and removed bug Something isn't working labels Jul 7, 2020
@robinscholz
Copy link
Owner

@Jones-S Did you turn on smartypants parsing?

@Jones-S
Copy link
Author

Jones-S commented Jul 15, 2020

Yes I do. But even then, why would I want a normal space to be transformed into a non-breaking space? Is that what smartypants is supposed to do?

@Jones-S
Copy link
Author

Jones-S commented Jul 15, 2020

Oh I see:

Replace existing spaces with non-break spaces for spaces used as a thousand separator and between a number and the unit symbol that follows it (for most common units).

https://michelf.ca/projects/php-smartypants/

I have to check if there is some configuration to smartypants, which could disable this...

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

No branches or pull requests

2 participants