From b3022d21ff5bcd0abdd39c28369d81503a9a0a09 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Thu, 8 Aug 2024 05:28:57 -0300 Subject: [PATCH] Fix whitespace in elapsed time badge --- src/dotnet-trx/TrxCommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dotnet-trx/TrxCommand.cs b/src/dotnet-trx/TrxCommand.cs index 050008c..d1bdaa7 100644 --- a/src/dotnet-trx/TrxCommand.cs +++ b/src/dotnet-trx/TrxCommand.cs @@ -298,6 +298,8 @@ static void GitHubReport(TrxSettings settings, Summary summary, StringBuilder de static StringBuilder AppendBadges(Summary summary, StringBuilder builder, string elapsed, string? jobUrl) { + elapsed = elapsed.Replace(" ", "%20"); + // ![5 passed](https://img.shields.io/badge/❌-linux%20in%2015m%206s-blue) ![5 passed](https://img.shields.io/badge/os-macOS%20✅-blue) if (summary.Failed > 0) builder.Append(Link($"![{summary.Failed} failed](https://img.shields.io/badge/❌-{Runtime}%20in%20{elapsed}-blue)", jobUrl));