Normalize breakingSpaces like regular whiteSpaces#3120
Conversation
scordio
left a comment
There was a problem hiding this comment.
Thank you, @maximedezette! I've put some comments.
Could you please also enhance the Javadoc as mentioned in #3113 (comment)?
Lastly, the build is failing due to formatting issues. You can run ./mvnw spotless:apply to make sure that all changes adhere to the expected code style.
1b874bb to
5670feb
Compare
229e4f1 to
0d5edf8
Compare
|
@maximedezette This PR has now several merge conflicts but you don't need to worry about them: I've taken the opportunity to do some refactoring in the surrounding area to better evaluate if we should also change other assertions relying on whitespaces. Once I'm done with the refactoring, I'll cherry-pick your changes maintaining you as the author. |
0d5edf8 to
86fd497
Compare
|
@scordio I have missed your comment mentioning the cherry-pick and I've done the rebase 😅 I have thrown away a bit of code about the refactoring of non-breaking spaces tests but I'll do an other PR if I feel that it could improve the tests after your refactoring 👍 |
|
@maximedezette sorry for the slow feedback! I just refreshed your branch and made some cosmetic changes. Also, I noticed that this change will also affect Would you like to add the missing tests? No problem if you don't have time, I can take care of them next week. |
|
@scordio I don't have time at the moment but if it can wait a few days, I should be able to add those tests this week 👍 |
bb71108 to
1b97713
Compare
|
Thanks for your first contribution, @maximedezette! |
Check List:
Following the contributing guidelines will make it easier for us to review and accept your PR.
Note
I think that the breaking-space management could be improved by using a public constant so that we don't have to update all the tests if some of the breaking space codes change over time. It would look like this:
Instead of having to update all the tests:
What do you think ?