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