-
Notifications
You must be signed in to change notification settings - Fork 129
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
Highlight leading and trailing spaces, and double/multiple spaces in the middle #1500
Conversation
@amieiro currently the Translation markup is added to editor |
Added unit tests for both the spaces highlight introduced in this PR, and the already existent markup for invisible characters as tabs and line breaks |
We agreed on our triage session that this can be merged after a code review. The functionality is fine. |
just ... thank you so much !!! |
What?
Highlight the leading and trailing spaces both in the preview and editor rows
Also highlight double and multiple spaces in the middle.
This PR also adds a missing unit test for the invisible characters markup added on prepare_original() for line breaks and tabs.
Why?
Allows the translator to see the spaces at the beginning or the end of an original/translation.
Allows authors and translators to see double and multiple spaces in the middle of strings.
How?
Wrap the spaces in a
<span>
withinvisible-spaces
class, which adds a grey color.Testing Instructions
Fixes #863.