Skip to content
Snippets Groups Projects
Commit bc5dc2df authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"dcc:content" more compact

parent 08d255c8
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,7 @@
<dcc:name>
{%- for i in x['name'] %}
<dcc:content lang="{{i.lang}}">
<![CDATA[
{%- for j in i.content %}
{{j|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for j in i.content %}{{j|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......@@ -16,22 +12,14 @@
<dcc:name>
{%- for j in i['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
<dcc:description>
{%- for j in i['description'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:description>
......@@ -39,11 +27,7 @@
<dcc:name>
{%- for j in i.manufacturer['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......@@ -56,11 +40,7 @@
<dcc:description>
{%- for k in j['description'] %}
<dcc:content lang="{{k.lang}}">
<![CDATA[
{%- for l in k.content %}
{{l|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for l in k.content %}{{l|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:description>
......
......@@ -4,11 +4,7 @@
<dcc:name>
{%- for i in x['name'] %}
<dcc:content lang="{{i.lang}}">
<![CDATA[
{%- for j in i.content %}
{{j|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for j in i.content %}{{j|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......@@ -17,11 +13,7 @@
<dcc:further>
{%- for i in x.location.further %}
<dcc:content lang="{{i.lang}}">
<![CDATA[
{%- for j in i.content %}
{{j|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for j in i.content %}{{j|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:further>
......
......@@ -20,11 +20,7 @@
<dcc:description>
{%- for j in i['description'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:description>
......
......@@ -3,11 +3,7 @@
<dcc:name>
{%- for i in x['name'] %}
<dcc:content lang="{{i.lang}}">
<![CDATA[
{%- for j in i.content %}
{{j|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for j in i.content %}{{j|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......
......@@ -8,11 +8,7 @@
<dcc:name>
{%- for j in i['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......@@ -24,11 +20,7 @@
<dcc:name>
{%- for l in v['name'] %}
<dcc:content lang="{{l.lang}}">
<![CDATA[
{%- for m in l.content %}
{{m|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for m in l.content %}{{m|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......
......@@ -5,11 +5,7 @@
<dcc:name>
{%- for j in i.person['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......
......@@ -4,11 +4,7 @@
<dcc:name>
{%- for j in i['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......@@ -18,11 +14,7 @@
<dcc:name>
{%- for k in j['name'] %}
<dcc:content lang="{{k.lang}}">
<![CDATA[
{%- for l in k.content %}
{{l|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for l in k.content %}{{l|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......
......@@ -4,22 +4,14 @@
<dcc:name {%- if i.id %} id="{{i.id}}" {% endif -%}>
{%- for j in i['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{%endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
<dcc:description>
{%- for j in i['description'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:description>
......
......@@ -4,11 +4,7 @@
<dcc:name>
{%- for j in i['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[
{%- for k in j.content %}
{{k|safe}}
{% endfor -%}
]]>
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endfor -%}
</dcc:name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment