File tree 2 files changed +7
-7
lines changed
tests/templates/patterns/atoms/tags_test_atom
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,9 @@ def node_render(context):
73
73
context [target_var ] = result
74
74
return ""
75
75
76
- # Render result instead of the tag
77
- return result
76
+ # Render result instead of the tag, as a string.
77
+ # See https://github.com/torchbox/django-pattern-library/issues/166.
78
+ return str (result )
78
79
elif default_html is not UNSPECIFIED :
79
80
# Render provided default;
80
81
# if no stub data supplied.
Original file line number Diff line number Diff line change 3
3
empty_string :
4
4
raw : ' '
5
5
none :
6
- raw : ' None'
6
+ raw : None
7
7
zero :
8
- raw : ' 0 '
8
+ raw : 0
9
9
default_html_tag :
10
10
page.url :
11
11
raw : " example"
16
16
empty_string :
17
17
raw : ' '
18
18
none :
19
- raw : ' None'
19
+ raw : None
20
20
zero :
21
- raw : ' 0'
22
-
21
+ raw : 0
You can’t perform that action at this time.
0 commit comments