diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-07-18 15:37:14 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 10:09:43 -0300 |
| commit | 1ecf6889cabc9f3f60d3fdd651468cddd8f4da6e (patch) | |
| tree | 77eebf89eaf5f1ee6f5947a962caa67b5cca7f4b /django/template | |
| parent | 1909108f9f0f2a91c1ec0fcdb65b01f58743a871 (diff) | |
Removed double spaces after periods and within phrases.
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/defaulttags.py | 6 | ||||
| -rw-r--r-- | django/template/library.py | 2 | ||||
| -rw-r--r-- | django/template/smartif.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index a511f17310..17a97ec788 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -87,7 +87,7 @@ class CsrfTokenNode(Node): if settings.DEBUG: warnings.warn( "A {% csrf_token %} was used in a template, but the context " - "did not provide the value. This is usually caused by not " + "did not provide the value. This is usually caused by not " "using RequestContext." ) return "" @@ -205,7 +205,7 @@ class ForNode(Node): values = reversed(values) num_loopvars = len(self.loopvars) unpack = num_loopvars > 1 - # Create a forloop value in the context. We'll update counters on each + # Create a forloop value in the context. We'll update counters on each # iteration just below. loop_dict = context["forloop"] = { "parentloop": parentloop, @@ -720,7 +720,7 @@ def do_filter(parser, token): filter_name = getattr(func, "_filter_name", None) if filter_name in ("escape", "safe"): raise TemplateSyntaxError( - '"filter %s" is not permitted. Use the "autoescape" tag instead.' + '"filter %s" is not permitted. Use the "autoescape" tag instead.' % filter_name ) nodelist = parser.parse(("endfilter",)) diff --git a/django/template/library.py b/django/template/library.py index 3ec39ff572..1a65087e92 100644 --- a/django/template/library.py +++ b/django/template/library.py @@ -484,5 +484,5 @@ def import_library(name): return module.register except AttributeError: raise InvalidTemplateLibrary( - "Module %s does not have a variable named 'register'" % name, + "Module %s does not have a variable named 'register'" % name, ) diff --git a/django/template/smartif.py b/django/template/smartif.py index 6a6a03dd84..c1ed0ff065 100644 --- a/django/template/smartif.py +++ b/django/template/smartif.py @@ -3,7 +3,7 @@ Parser and utilities for the smart 'if' tag """ # Using a simple top down parser, as described here: -# https://11l-lang.org/archive/simple-top-down-parsing/ +# https://11l-lang.org/archive/simple-top-down-parsing/ # 'led' = left denotation # 'nud' = null denotation # 'bp' = binding power (left = lbp, right = rbp) @@ -60,7 +60,7 @@ def infix(bp, func): try: return func(context, self.first, self.second) except Exception: - # Templates shouldn't throw exceptions when rendering. We are + # Templates shouldn't throw exceptions when rendering. We are # most likely to get exceptions for things like {% if foo in bar # %} where 'bar' does not support 'in', so default to False return False |
