diff --git a/lms/templates/registration/password_reset_confirm.html b/lms/templates/registration/password_reset_confirm.html
index 2d5282b291..3d07b365f3 100644
--- a/lms/templates/registration/password_reset_confirm.html
+++ b/lms/templates/registration/password_reset_confirm.html
@@ -36,10 +36,10 @@ from openedx.core.djangolib.markup import HTML, Text
${_("Invalid Password Reset Link")}
- ${Text(_(
- "This password reset link is invalid. It may have been used already. "
- "To reset your password, go to the {start_link}sign-in{end_link} page and "
- "select {start_strong}Forgot password{end_strong}."
+ ${Text(
+ _("This password reset link is invalid. It may have been used already. "
+ "To reset your password, go to the {start_link}sign-in{end_link} page and "
+ "select {start_strong}Forgot password{end_strong}."
)).format(
start_link=HTML(''),
end_link=HTML(''),