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

Safari adding no-break-spaces instead of spaces in IText #3920

Closed
mlev opened this issue May 11, 2017 · 3 comments · Fixed by #4119
Closed

Safari adding no-break-spaces instead of spaces in IText #3920

mlev opened this issue May 11, 2017 · 3 comments · Fixed by #4119

Comments

@mlev
Copy link

mlev commented May 11, 2017

Version

1.7.11

Test Case

Kitchen Sink Demo

Steps to reproduce

  1. Open Kitchen Sink Demo in Safari
  2. In IText/Text box enter some text with spaces
  3. Inspect text in Hex editor

Expected Behavior

Regular spaces are entered (0x20)

Actual Behavior

No break spaces are entered (0xC2A0)

Notes

  • This seems due to the "whitespace: nowrap" css on the hidden textarea (I know this was added recently to fix wrapping bug in Chrome).
  • Adding textarea attribute wrap="off" and removing "whitespace: nowrap" seems to work ok in Safari and Chrome (not tested other browsers).
@asturur
Copy link
Member

asturur commented May 11, 2017

what if i add wrap="off" and leave whitespace: nowrap?

@mlev
Copy link
Author

mlev commented May 12, 2017

Just retried and that still enters no-break-spaces in Safari.

@asturur
Copy link
Member

asturur commented Jul 22, 2017

Ok i made the change and i ll publish it in 2.0 beta4.

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 a pull request may close this issue.

2 participants