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

Update class_label.rst for property visible_characters #5447

Closed
wants to merge 1 commit into from
Closed

Update class_label.rst for property visible_characters #5447

wants to merge 1 commit into from

Conversation

belzecue
Copy link
Contributor

Clarify that space characters do not count toward the visible count. This makes sense but it's not obvious. In general programming, a space character is never ignored in a string, and a user might easily assume at first (as I did) that the string "Hello World! the musical" with visible_characters set to 12 would produce "Hello World!" when in fact it would produce "Hello World! t".

Clarify that space characters do not count toward the visible count.  This makes sense but it's not obvious.  In general programming, a space character is never ignored in a string, and a user might easily assume at first (as I did) that the string "Hello World! the musical" with visible_characters set to 12 would produce "Hello World!" when in fact it would produce "Hello World! t".
@Calinou
Copy link
Member

Calinou commented Dec 12, 2021

Thanks for opening a pull request!

Contributions to the class reference should be sent on the main Godot repository, not here. This is because the class reference in this repository is generated automatically based on the XML files in the main repository. See Contribute to the class reference in the documentation 🙂

See also godotengine/godot#34775 and godotengine/godot#53874.

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

Successfully merging this pull request may close these issues.

2 participants