diff --git a/gitgen.py b/gitgen.py
index 8cc5e10..0b9e605 100644
--- a/gitgen.py
+++ b/gitgen.py
@@ -183,7 +183,7 @@ class GitRepoScanner:
tags = []
if tags_output:
tags = [tag.strip() for tag in tags_output.strip().split('\n') if tag.strip()]
-
+
commits.append({
'hash': commit_hash,
'short_hash': commit_hash[:7],
@@ -471,13 +471,13 @@ class HTMLGenerator:
for commit in commits:
commit_details = self.scanner.get_commit_details(repo['path'], commit['hash'])
formatted_message = commit_details.get('message_escaped', '') if commit_details else commit.get('message_escaped', '')
-
+
# Generate tags HTML if present
tags_html = ""
if commit.get('tags'):
tags_list = " ".join([f'<span class="tag-badge">{html.escape(tag)}</span>' for tag in commit['tags']])
tags_html = f'<span class="label" >tag:</span>{tags_list}</span>'
-
+
html_fragments.append(f"""
<div class="commit-item commit-meta">
<span class="label">commit:</span>
@@ -535,7 +535,7 @@ class HTMLGenerator:
tags = []
if tags_output:
tags = [tag.strip() for tag in tags_output.strip().split('\n') if tag.strip()]
-
+
# Generate tags HTML if present
tags_html = ""
if tags: