diff --git a/app/assets/error_pages/5xx.html b/app/assets/error_pages/5xx.html
index 1f802e608..8fd9ef8bd 100644
--- a/app/assets/error_pages/5xx.html
+++ b/app/assets/error_pages/5xx.html
@@ -75,7 +75,7 @@
Try again later.
- You can check our system status page to see if there are any known issues.
To report a problem, email notify-support@digital.cabinet-office.gov.uk
+ You can check our system status page to see if there are any known issues.
To report a problem, email notify-support@digital.cabinet-office.gov.uk
diff --git a/app/main/validators.py b/app/main/validators.py
index 63f36d5f5..7ef28cdb9 100644
--- a/app/main/validators.py
+++ b/app/main/validators.py
@@ -46,7 +46,8 @@ class ValidGovEmail:
message = (
'Enter a government email address.'
' If you think you should have access'
- ' contact us').format(url_for('main.support'))
+ ' contact us'
+ ).format(url_for('main.support'))
if not is_gov_user(field.data.lower()):
raise ValidationError(message)
diff --git a/app/templates/views/trial-mode.html b/app/templates/views/trial-mode.html
index a367876c2..4a83f3ebd 100644
--- a/app/templates/views/trial-mode.html
+++ b/app/templates/views/trial-mode.html
@@ -24,7 +24,7 @@
To remove these restrictions:
- - Sign in to Notify.
+ - Sign in to Notify.
- Go to the Settings page.
- Select Request to go live.
diff --git a/app/utils.py b/app/utils.py
index 752eadebc..acbd4c9c9 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -571,22 +571,34 @@ LETTER_VALIDATION_MESSAGES = {
'title': 'Your letter is not A4 portrait size',
'detail': (
'You need to change the size or orientation of {invalid_pages}.
'
- 'Files must meet our letter specification.'
+ 'Files must meet our '
+ ''
+ 'letter specification'
+ '.'
),
'summary': (
'Validation failed because {invalid_pages} {invalid_pages_are_or_is} not A4 portrait size.
'
- 'Files must meet our letter specification.'
+ 'Files must meet our '
+ ''
+ 'letter specification'
+ '.'
),
},
'content-outside-printable-area': {
'title': 'Your content is outside the printable area',
'detail': (
'You need to edit {invalid_pages}.
'
- 'Files must meet our letter specification.'
+ 'Files must meet our '
+ ''
+ 'letter specification'
+ '.'
),
'summary': (
'Validation failed because content is outside the printable area on {invalid_pages}.
'
- 'Files must meet our letter specification.'
+ 'Files must meet our '
+ ''
+ 'letter specification'
+ '.'
),
},
'letter-too-long': {
@@ -618,11 +630,17 @@ LETTER_VALIDATION_MESSAGES = {
'title': 'The address block is empty',
'detail': (
'You need to add a recipient address.
'
- 'Files must meet our letter specification.'
+ 'Files must meet our '
+ ''
+ 'letter specification'
+ '.'
),
'summary': (
'Validation failed because the address block is empty.
'
- 'Files must meet our letter specification.'
+ 'Files must meet our '
+ ''
+ 'letter specification'
+ '.'
),
}
}
diff --git a/tests/app/main/views/test_user_profile.py b/tests/app/main/views/test_user_profile.py
index 569b60c49..6136a98a5 100644
--- a/tests/app/main/views/test_user_profile.py
+++ b/tests/app/main/views/test_user_profile.py
@@ -263,7 +263,7 @@ def test_non_gov_user_cannot_see_change_email_link(
):
client_request.login(api_nongov_user_active)
page = client_request.get('main.user_profile')
- assert '' not in str(page)
+ assert '' not in str(page)
assert page.select_one('h1').text.strip() == 'Your profile'