Upgrade utils to 48.0.0

Fixes a bug with non breaking spaces being removed from templates
This commit is contained in:
David McDonald
2021-10-29 16:10:55 +01:00
parent 82eaf4e40c
commit c6b884dcef
7 changed files with 15 additions and 12 deletions

View File

@@ -24,7 +24,10 @@ from govuk_frontend_jinja.flask_ext import init_govuk_frontend
from itsdangerous import BadSignature
from notifications_python_client.errors import HTTPError
from notifications_utils import logging, request_helper
from notifications_utils.formatters import formatted_list, normalise_lines
from notifications_utils.formatters import (
formatted_list,
get_lines_with_normalised_whitespace,
)
from notifications_utils.recipients import format_phone_number_human_readable
from notifications_utils.sanitise_text import SanitiseASCII
from werkzeug.exceptions import HTTPException as WerkzeugHTTPException
@@ -553,7 +556,7 @@ def add_template_filters(application):
format_notification_status_as_url,
format_number_in_pounds_as_currency,
formatted_list,
normalise_lines,
get_lines_with_normalised_whitespace,
nl2br,
format_phone_number_human_readable,
format_thousands,