revsys / django-test-plus

Useful additions to Django's default TestCase
https://django-test-plus.readthedocs.io
BSD 3-Clause "New" or "Revised" License
612 stars 62 forks source link

Fix CBVTest example code block indentation #189

Closed grahamu closed 1 year ago

grahamu commented 1 year ago

Two code block examples are not recognized as code blocks because they have two levels of indent:

Screen Shot 2022-12-06 at 6 52 31 PM

This PR should fix that formatting by removing one level of indent. Although I haven't seen the result rendered locally (just on github, "View file"), I'm following the same convention seen in the rest of DTP documentation, one level of indent.

I didn't add the ReST code-block syntax since the existing DTP documentation does not use that format.

..  code-block:: php

The result:

Screen Shot 2022-12-06 at 7 04 48 PM
jefftriplett commented 1 year ago

@grahamu thank you for the contribution!