From 5cd914f007d12886829f169549de0b8268c885fd Mon Sep 17 00:00:00 2001 From: Syer10 Date: Fri, 15 Aug 2025 11:41:38 -0400 Subject: [PATCH] Fix newlines --- cps/templates/feed.xml | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/cps/templates/feed.xml b/cps/templates/feed.xml index 0bb9a3c6..d3d4e106 100644 --- a/cps/templates/feed.xml +++ b/cps/templates/feed.xml @@ -63,26 +63,25 @@ term="{{tag.name}}" label="{{tag.name}}"/> {% endfor %} - +
+ {% if entry.Books.ratings.__len__() > 0 %} + RATING: + {% for number in range((entry.Books.ratings[0].rating/2)|int(2)) %} + ★ + {% if loop.last and loop.index < 5 %} + {% for numer in range(5 - loop.index) %} + ★ + {% endfor %} + {% endif %} + {% endfor %}
+ {% endif %} {% if entry.Books.tags|length > 0 %} - TAGS: {% for tag in entry.Books.tags %}{{tag.name}}{{ ", " if not loop.last else "" }}{% endfor %} - + TAGS: {% for tag in entry.Books.tags %}{{tag.name}}{{ ", " if not loop.last else "" }}{% endfor %}
{% endif %} {% if entry.Books.series.__len__() > 0 %} - SERIES: {{entry.Books.series[0].name}} [{{entry.Books.series_index|formatfloat(2)}}] - - {% endif %} - {% if entry.Books.ratings.__len__() > 0 %} - RATING: {% for number in range((entry.Books.ratings[0].rating/2)|int(2)) %} - ★ - {% if loop.last and loop.index < 5 %} - {% for numer in range(5 - loop.index) %} - ★ - {% endfor %} - {% endif %} - {% endfor %} - + SERIES: {{entry.Books.series[0].name}} [{{entry.Books.series_index|formatfloat(2)}}]
{% endif %} + {% if cc|length > 0 %} {% for c in cc %} {% if entry.Books['custom_column_' ~ c.id]|length > 0 %} @@ -114,15 +113,15 @@ {% endif %} {% endif %} {% endfor %} - +
{% endif %} {% endfor %} {% endif %} - + {% if entry.Books.comments[0] %} - {{entry.Books.comments[0].text|striptags}} +

{{entry.Books.comments[0].text|striptags}}

{% endif %} -
+ {% if entry.Books.has_cover %}