-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prevent trailing line feeds in translation values #126446
Conversation
@@ -12,7 +12,7 @@ | |||
"description": "[%key:component::bluetooth::config::step::bluetooth_confirm::description%]" | |||
}, | |||
"reauth_confirm": { | |||
"description": "The activation code is no longer valid, a new unused activation code is needed.\n\n" | |||
"description": "The activation code is no longer valid, a new unused activation code is needed." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As with all other violations, the line feeds seem intentional - but I am unsure why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem valid. If we want blank lines after the description in the UI that should be handled by the frontend, consistently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may have added this for the google ones (which were copied to the others) but i'm not seeing an immediate reason.
There doesn't appear to be extra whitespace in the rendered markdown in an existing production instance:

I have not tried it with this change, but assuming it looks the similar then this seems fine to me.
Proposed change
SSIA
Follow-up to #126427
cc @MartinHjelmare, based on post-merge feedback in #126427 (comment)
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: