Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple help strings break HTML validity in help-block #89

Open
optik opened this issue Sep 8, 2016 · 0 comments
Open

Multiple help strings break HTML validity in help-block #89

optik opened this issue Sep 8, 2016 · 0 comments

Comments

@optik
Copy link

optik commented Sep 8, 2016

When there are multiple help messages per field (eg. from multiple validators), the resulting output is formatted as an unordered list by django. When wrapped in:

<p class="help-block">
  {{ field.help_text|safe }}
</p>

(templates/bootstrapform/field.html) this produces invalid HTML. As a result, the ul is pushed out of wrapping paragraph, the styling breaks etc.
I believe changing paragraph tag to div would be a pretty safe solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant