Browsable API markdown description broken if tabs are used in code indentation. #4345
Closed
4 of 6 tasks
Labels
Milestone
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.
Checklist
master
branch of Django REST framework.Steps to reproduce
Expected behavior
It returns:
Actual behavior
It should return:
The text was updated successfully, but these errors were encountered: