misc: don't require an attribute-less <ol> to add steps title (#37701)

This commit is contained in:
Frédéric Péters 2019-11-15 16:29:36 +01:00
parent 0076451e7b
commit 86c467147f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class AlternateFormPage(OldFormPage):
def form_side(self, *args, **kwargs):
form_side_html = OldFormPage.form_side(self, *args, **kwargs)
# add a 'Steps' title
form_side_html = str(form_side_html).replace('<ol>', '<h2>%s</h2>\n<ol>' % _('Steps'))
form_side_html = str(form_side_html).replace('<ol', '<h2>%s</h2>\n<ol' % _('Steps'))
get_response().filter['gauche'] = form_side_html
get_response().filter['steps'] = form_side_html
return