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

Use quotes on project name #1600 #1601

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

Bananeweizen
Copy link
Contributor

@Bananeweizen Bananeweizen commented Nov 11, 2023

Also fix 2 additional properties ending in blanks. One can be removed, the other should be trimmed and the blank be added in code.

Looks like this after the change:
grafik

Copy link

github-actions bot commented Nov 11, 2023

Test Results

107 files  ±0  107 suites  ±0   10m 18s ⏱️ +13s
662 tests ±0  652 ✔️ ±0  10 💤 ±0  0 ±0 
662 runs  ±0  651 ✔️ ±0  11 💤 ±0  0 ±0 

Results for commit 3bb89ee. ± Comparison against base commit 7b152e5.

♻️ This comment has been updated with latest results.

Also fix 2 additional properties ending in blanks. One can be removed,
the other should be trimmed and the blank be added in code.
@laeubi
Copy link
Member

laeubi commented Nov 11, 2023

@Bananeweizen can you explain why the quotes are required?

@Bananeweizen
Copy link
Contributor Author

@laeubi an example is visible in the linked issue: #1600. project names with blanks are hard to read in the unquoted version. And quotes are used in many of the other m2e progress messages anyway.

@HannesWell The properties are used in NLS, which in turn uses MessageFormat. And that uses single quote ranges for escaped text:

Within a String, a pair of single quotes can be used to quote any arbitrary characters except single quotes. For example, pattern string "'{0}'" represents string "{0}", not a FormatElement. A single quote itself must be represented by doubled single quotes '' throughout a String.

https://docs.oracle.com/javase/8/docs/api/java/text/MessageFormat.html

@laeubi
Copy link
Member

laeubi commented Nov 11, 2023

I'm not sure if the quotes make things better readable, maybe we should improve the message itself to be more expressive?

@Bananeweizen
Copy link
Contributor Author

Well, I'm sure that the quotes make the message more readable. :) No need to extend the message, especially because that is only the detail progress message (the lower part of the progress bar), the "what" is in the upper part of the progress bar anyway.

Copy link
Contributor

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I'm sure that the quotes make the message more readable. :) No need to extend the message, especially because that is only the detail progress message (the lower part of the progress bar), the "what" is in the upper part of the progress bar anyway.

I share this assessment.
LGTM.

@HannesWell HannesWell linked an issue Nov 13, 2023 that may be closed by this pull request
@HannesWell HannesWell merged commit 0d7583d into eclipse-m2e:master Nov 13, 2023
4 of 5 checks passed
@HannesWell
Copy link
Contributor

Thanks Michael.

@Bananeweizen Bananeweizen deleted the project_quotes branch November 14, 2023 09:57
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

Successfully merging this pull request may close these issues.

Use quotes on project name
3 participants