From 6642cf12d2708e71bd9e867fd312f911b41ec843 Mon Sep 17 00:00:00 2001 From: MinaSaad1 Date: Fri, 10 Apr 2026 22:09:18 +0200 Subject: [PATCH] fix: use unicode chars instead of html entities in downloads chart • and → are HTML entities, not valid XML, so GitHub's image renderer failed to load the SVG and showed a broken image. Replaced with literal U+2022 and U+2192 characters. --- assets/downloads-chart.svg | 4 ++-- scripts/generate_downloads_chart.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/downloads-chart.svg b/assets/downloads-chart.svg index 6f33d91..bec73bc 100644 --- a/assets/downloads-chart.svg +++ b/assets/downloads-chart.svg @@ -11,7 +11,7 @@ pbi-cli Downloads Over Time - Cumulative installs from PyPI • mirrors excluded • source: pypistats.org + Cumulative installs from PyPI • mirrors excluded • source: pypistats.org @@ -34,6 +34,6 @@ Mar 26Mar 29Apr 02Apr 06Apr 09 - Mar 26, 2026 → Apr 09, 2026 + Mar 26, 2026 → Apr 09, 2026 15 days of data diff --git a/scripts/generate_downloads_chart.py b/scripts/generate_downloads_chart.py index fe1d316..953c10b 100644 --- a/scripts/generate_downloads_chart.py +++ b/scripts/generate_downloads_chart.py @@ -166,7 +166,7 @@ def build_svg(series: list[tuple[date, int]]) -> str: pbi-cli Downloads Over Time - Cumulative installs from PyPI • mirrors excluded • source: pypistats.org + Cumulative installs from PyPI \u2022 mirrors excluded \u2022 source: pypistats.org {"".join(gridlines)} @@ -189,7 +189,7 @@ def build_svg(series: list[tuple[date, int]]) -> str: {"".join(x_labels)} - {first_date} → {last_date} + {first_date} \u2192 {last_date} {n} days of data """