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

UTF-Non-breaking-Space before Endash is replaced by regular space #146

Closed
animaux opened this issue Mar 7, 2022 · 2 comments
Closed

UTF-Non-breaking-Space before Endash is replaced by regular space #146

animaux opened this issue Mar 7, 2022 · 2 comments

Comments

@animaux
Copy link

animaux commented Mar 7, 2022

php-typography seems to remove intentionally set non-breaking-spaces before en-dashes. We use them in order to prevent lines from starting with a dash, like this [non-breaking-space][en-dash][regular-space].

Through php-typography:

Bildschirmfoto 2022-03-07 um 11 30 18

Without php-typography (intended behaviour):

Bildschirmfoto 2022-03-07 um 11 30 35

Version is 6.0 (in Craft Typogrify plugin)

@mundschenk-at
Copy link
Owner

Could you please provide a standalone test case (using just the library)?

@animaux
Copy link
Author

animaux commented Mar 8, 2022

Here’s a simple test-case: https://gist.github.com/animaux/ae3e2a96f886f8dedb3ca736194e84a0

Result is different than the one in the craft extension (NO-BREAK SPACE is retained), so the problem seems to be outside php-typography. Closing this, thanks!

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