-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Custom text saved with pipe delimiter isnt loaded correctly #4534
Comments
More details about the issue and steps to replicate would be helpful. I would like to work on this. |
If you enable pipe delimiter, then save the text |
Can't seem to find the settings corresponding to this, where can I find it under. |
Test page > custom mode > change (this opens the custom text popup) |
The way it works right now, is that when saving it breaks the text into 'space' separated words, and then joins them with the delimiter ( Current Behavior: Possible Fix Behavior but it will create situations like this as well: So, if the expected correct behavior is simply keeping spaces, spaces and not replacing them with This is more of a UX question at this point, I have never used the pipe-delimiter, so can't comment. |
@sanidhyas3s this looks pretty much like the expected behaviour. @Miodec Why would you want to use Pipe character when you are going to use it as a delimiter? |
Dont understand the question sorry |
My bad looks like i missed this or forgot to respond. I think removing the automatic space to pipe conversion to correct the loading is a fair tradeoff. |
@Miodec So, for a text saved without pipe delimiter wouldn't have pipe delimiters when loaded with pipe delimiter on, does that seem correct? If yes, then simply we'll still break down the text based on space, and save it (text with pipe delimiter would just be saved as one long word) and then just combine them with space itself (this would be the only change). |
Text saved with space separated words are now loaded with space only. Fixes monkeytypegame#4534
I have made a PR with the fix as proposed in the previous message, you can test it, and merge it if the behavior matches the expected behavior. |
No description provided.
The text was updated successfully, but these errors were encountered: