From 6f898088f2623cc6d5ae5e1fe095ce402716d049 Mon Sep 17 00:00:00 2001 From: NickiCloud Date: Wed, 2 Sep 2026 21:01:01 +0200 Subject: [PATCH] fix(svg): remove utf-8 bom and add xml declaration for gitea typesniffer [skip ci] --- README.md | 2 +- heatmap.svg | 11 ++++++----- src/ProfileManager/Program.cs | 3 ++- src/ProfileManager/Services/ReadmeInjector.cs | 3 ++- src/ProfileManager/Services/SvgGenerator.cs | 1 + 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 94604c0..521502e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -
+
# 🦊 Hey, ich bin Nicki! diff --git a/heatmap.svg b/heatmap.svg index f53b58b..a9ce4df 100644 --- a/heatmap.svg +++ b/heatmap.svg @@ -1,4 +1,5 @@ - + + @@ -73,7 +74,7 @@ 🦊 NickiCloud Gitea Activity - 22 Commits im letzten Jahr + 23 Commits im letzten Jahr Sep @@ -1171,8 +1172,8 @@ 01.09.2026: 9 Commits - - 02.09.2026: 6 Commits + + 02.09.2026: 7 Commits 03.09.2026: 0 Commits @@ -1191,7 +1192,7 @@ 📦 - 22 + 23 Jahres-Beiträge diff --git a/src/ProfileManager/Program.cs b/src/ProfileManager/Program.cs index 584166b..1ec04be 100644 --- a/src/ProfileManager/Program.cs +++ b/src/ProfileManager/Program.cs @@ -71,7 +71,8 @@ internal static class Program { Directory.CreateDirectory(svgDir); } - await File.WriteAllTextAsync(svgPath, svgContent, Encoding.UTF8); + var utf8WithoutBom = new UTF8Encoding(false); + await File.WriteAllTextAsync(svgPath, svgContent, utf8WithoutBom); Console.WriteLine($"[SVG] Saved successfully to: {svgPath}"); // Step 4: Inject latest repos into README.md diff --git a/src/ProfileManager/Services/ReadmeInjector.cs b/src/ProfileManager/Services/ReadmeInjector.cs index f35a092..a2b510a 100644 --- a/src/ProfileManager/Services/ReadmeInjector.cs +++ b/src/ProfileManager/Services/ReadmeInjector.cs @@ -63,7 +63,8 @@ public static class ReadmeInjector var newContent = content.Substring(0, startIndex) + replacement + content.Substring(endIndex + EndMarker.Length); - File.WriteAllText(readmePath, newContent, Encoding.UTF8); + var utf8WithoutBom = new UTF8Encoding(false); + File.WriteAllText(readmePath, newContent, utf8WithoutBom); Console.WriteLine($"[README] Successfully injected {repos.Count} repositories into {readmePath}"); return true; } diff --git a/src/ProfileManager/Services/SvgGenerator.cs b/src/ProfileManager/Services/SvgGenerator.cs index 154ceeb..6f2d1f2 100644 --- a/src/ProfileManager/Services/SvgGenerator.cs +++ b/src/ProfileManager/Services/SvgGenerator.cs @@ -23,6 +23,7 @@ public static class SvgGenerator const int cellGap = 3; const int colStep = cellSize + cellGap; // 13px + sb.AppendLine(""""""); sb.AppendLine($""""""); sb.AppendLine(" "); sb.AppendLine(" ");