From 2ece00e255d01e3ded2bd34cadf16b68f496d8b7 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 19 Sep 2024 14:22:35 +0200 Subject: [PATCH] fix(article.html): clean up redundant tag wrapping Consolidated opening and closing tags for text elements, removing unnecessary line breaks. This improves readability and reduces the complexity of the HTML structure, ensuring better maintainability. No functional changes are introduced. --- src/small/templates/article.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/small/templates/article.html b/src/small/templates/article.html index e92a035..ad679a2 100644 --- a/src/small/templates/article.html +++ b/src/small/templates/article.html @@ -9,9 +9,7 @@ {% for paragraph in page.content %} {% for child in paragraph.children %} {% if child.__class__.__name__ == 'Text' %} - <{{ child.type | lower }}> - {{ child.content }} - + <{{ child.type | lower }}>{{ child.content }} {% elif child.__class__.__name__ == 'Image' %}

{{ child.alt }}