@@ -661,8 +661,6 @@ If you do not set ``needs_report_template``, the default template used is:
661
661
662
662
.. code- block:: jinja
663
663
664
- {% raw -% }
665
-
666
664
{# Output for needs_types #}
667
665
{% if types| length != 0 % }
668
666
.. dropdown:: Need Types
@@ -739,7 +737,7 @@ If you do not set ``needs_report_template``, the default template used is:
739
737
{% endif % }
740
738
{# Output for needs metrics #}
741
739
742
- { % endraw % }
740
+
743
741
744
742
The plugin provides the following variables which you can use in your custom Jinja template:
745
743
@@ -770,13 +768,12 @@ By default the following template is used:
770
768
771
769
.. code- block:: jinja
772
770
773
- {% raw -% }
774
771
{%- if is_need -% }
775
772
< size:12 > {{type_name}}< / size> \\n**{{title|wordwrap(15, wrapstring='**\\\\n**')}}**\\n<size:10>{{id}}</size>
776
773
{%- else -% }
777
774
< size:12 > {{type_name}} (part)< / size> \\n**{{content|wordwrap(15, wrapstring='**\\\\n**')}}**\\n<size:10>{{id_parent}}.**{{id}}**</size>
778
775
{%- endif -% }
779
- { % endraw % }
776
+
780
777
781
778
782
779
.. _needs_id_required:
@@ -1550,7 +1547,7 @@ Default: ``False``.
1550
1547
needs_service_all_data = True
1551
1548
1552
1549
1553
- { % raw % }
1550
+
1554
1551
1555
1552
.. _needs_external_needs:
1556
1553
@@ -1626,7 +1623,7 @@ keys:
1626
1623
The related CSS class definition must be done by the user, e.g. by :ref:`own_css` .
1627
1624
(* optional* ) (* default* : `` external_link`` )
1628
1625
1629
- { % endraw % }
1626
+
1630
1627
1631
1628
.. _needs_needextend_strict:
1632
1629
@@ -1718,7 +1715,7 @@ All named capture group values get injected, so that parts of the option-value c
1718
1715
link name and url.
1719
1716
1720
1717
** Example** :
1721
- { % raw % }
1718
+
1722
1719
1723
1720
.. code- block:: python
1724
1721
@@ -1740,7 +1737,7 @@ link name and url.
1740
1737
' options' : [' github' ]
1741
1738
}
1742
1739
}
1743
- { % endraw % }
1740
+
1744
1741
1745
1742
| ex|
1746
1743
@@ -1955,7 +1952,7 @@ constraints_results is a dictionary similar in structure to needs_constraints ab
1955
1952
" critical" : {
1956
1953
" check_0" : " 'critical' in tags" ,
1957
1954
" severity" : " CRITICAL" ,
1958
- " error_message" : " need {% raw %}{{ id}}{% endraw %} does not fulfill CRITICAL constraint, because tags are {% raw %}{{ tags}}{% endraw % }"
1955
+ " error_message" : " need {{ id}} does not fulfill CRITICAL constraint, because tags are {{ tags}} "
1959
1956
}
1960
1957
1961
1958
}
@@ -2137,8 +2134,6 @@ You can use the data passed via needs_render_context as shown below:
2137
2134
2138
2135
.. code- block:: jinja
2139
2136
2140
- {% raw -% }
2141
-
2142
2137
.. req:: Need with jinja_content enabled
2143
2138
:id : JINJA1D8913
2144
2139
:jinja_content: true
@@ -2153,9 +2148,7 @@ You can use the data passed via needs_render_context as shown below:
2153
2148
+ author[1 ]
2154
2149
{% endfor % }
2155
2150
2156
- {% endraw % }
2157
-
2158
- {% raw -% }
2151
+
2159
2152
2160
2153
.. req:: Need with jinja_content enabled
2161
2154
:id : JINJA1D8913
@@ -2168,7 +2161,7 @@ You can use the data passed via needs_render_context as shown below:
2168
2161
* {{ author[0 ] }} -- > ID - {{ author[1 ] }}
2169
2162
{% endfor % }
2170
2163
2171
- { % endraw % }
2164
+
2172
2165
2173
2166
2174
2167
.. _needs_debug_measurement:
@@ -2205,8 +2198,6 @@ If nothing is set, the following default template is used:
2205
2198
2206
2199
.. code- block:: jinja
2207
2200
2208
- {% raw -% }
2209
-
2210
2201
.. _{{id }}:
2211
2202
2212
2203
{% if hide == false -% }
@@ -2236,7 +2227,7 @@ If nothing is set, the following default template is used:
2236
2227
2237
2228
{% endif -% }
2238
2229
2239
- { % endraw % }
2230
+
2240
2231
2241
2232
Available jinja variables are:
2242
2233
@@ -2254,7 +2245,7 @@ Available jinja variables are:
2254
2245
2255
2246
.. warning::
2256
2247
2257
- You must add a reference like `.. _{{ ' {{ id }} ' }}:` to the template. Otherwise linking will not work!
2248
+ You must add a reference like `.. _{{id }}:` to the template. Otherwise linking will not work!
2258
2249
2259
2250
.. _needs_template_collapse:
2260
2251
@@ -2268,8 +2259,6 @@ Default value:
2268
2259
2269
2260
.. code- block:: jinja
2270
2261
2271
- {% raw -% }
2272
-
2273
2262
.. _{{id }}:
2274
2263
2275
2264
{% if hide == false -% }
@@ -2298,7 +2287,7 @@ Default value:
2298
2287
{{content| indent(4 ) }}
2299
2288
2300
2289
{% endif -% }
2301
- { % endraw % }
2290
+
2302
2291
2303
2292
For more details please see :ref:`needs_template` .
2304
2293
0 commit comments