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?
to your account
get_view_description(html=True) with markdown installed is broken if the project uses tabs instead of spaces. Everything after the first line is rendered as a <pre> block.
The problem is in the utils.formatting.dedent() function which only dedents spaces, not tabs.
from rest_framework.utils.formatting import dedent
dedent("\tfirst string\n\n\tsecond string")
u'first string\n\n\tsecond string'
It should return:
u'first string\n\nsecond string'
The text was updated successfully, but these errors were encountered:
Thanks for raising this! Fix incoming.
Sorry, something went wrong.
No branches or pull requests