diff --git a/doc/development/contribution/style.rst b/doc/development/contribution/style.rst index 539c786c3d..68f92fd720 100644 --- a/doc/development/contribution/style.rst +++ b/doc/development/contribution/style.rst @@ -8,12 +8,12 @@ Python code Use `flake8`_ to check for conformance problems. The project includes a setup.cfg file with a default configuration for flake8 that excludes migrations and other non-relevant - code parts. It also silences a few checks, e.g. ``N802`` (function names should be lowercase) - and increases the maximum line length to more than 79 characters. **However** you should + code parts. It also silences a few checks, e.g. ``N802`` (function names should be lowercase) + and increases the maximum line length to more than 79 characters. **However** you should still name all your functions lowercase [#f1]_ and keep your lines short when possible. * Our build server will reject all code violating other flake8 checks than the following: - + * E123: closing bracket does not match indentation of opening bracket’s line * F403: ``from module import *`` used; unable to detect undefined names * F401: module imported but unused diff --git a/doc/development/setup.rst b/doc/development/setup.rst index df545d457c..bf0a84d8b6 100644 --- a/doc/development/setup.rst +++ b/doc/development/setup.rst @@ -118,8 +118,8 @@ Then execute ``python -m smtpd -n -c DebuggingServer localhost:1025``. Working with translations ^^^^^^^^^^^^^^^^^^^^^^^^^ -If you want to translate new strings that are not yet known to the translation system, -you can use the following command to scan the source code for strings to be translated +If you want to translate new strings that are not yet known to the translation system, +you can use the following command to scan the source code for strings to be translated and update the ``*.po`` files accordingly:: make localegen diff --git a/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html b/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html index cdfd68cd90..754914a610 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_questions.html @@ -41,7 +41,7 @@ {% endif %} - + {% for form in forms %}
@@ -56,7 +56,7 @@ - {% endif %} + {% endif %}