From f26ccfa3e9eff0bf3e6229c0ae930b5b8d65a5b0 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 4 Dec 2024 06:31:56 -0800 Subject: [PATCH] fix: preserve plus sign at end of line in chart labels --- aider/website/_includes/qwq-chart.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aider/website/_includes/qwq-chart.js b/aider/website/_includes/qwq-chart.js index 37fbdcdc3..e60648d60 100644 --- a/aider/website/_includes/qwq-chart.js +++ b/aider/website/_includes/qwq-chart.js @@ -96,7 +96,11 @@ document.addEventListener('DOMContentLoaded', function () { }, callback: function(value, index) { const label = this.getLabelForValue(value); - return label.split(" + "); + if (label.includes(" + ")) { + const parts = label.split(" + "); + return [parts[0] + " +", parts[1]]; + } + return label; } } }