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

Whitespaces are being ignored at the end or beginning of text #142

Open
cophiesarius opened this issue Feb 4, 2022 · 1 comment
Open

Comments

@cophiesarius
Copy link

Firstly thank you for your work!

Unfortunatley I'm experiencing an Issue regarding whitespaces at the end or beginning of a text I'm using CircleType on.
It seems that the whitespaces are being ignored, resulting in an uneven result when using some seperators like this:

CircleType_WhitespaceIssue

I also tried using protected whitespaces like '&#160' or ' ' but without success.

Would it be possible to take ending or beginning whitespaces into account when using CircleType?

Thanks and Greetings from Germany!

@TomoyaKuroda
Copy link

I think you can use a custom splitter like this.
var demo7 = new CircleType( document.getElementById('demo7'), (string) => (string + ' ').split('') );
Here is the demo. https://codepen.io/tomoyakuroda/pen/rNJBxJo

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