sc: format optional title of gateway build times
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 22 May 2023 22:03:57 +0000 (00:03 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 23 May 2023 01:01:57 +0000 (03:01 +0200)
Fixed html attribute syntax and value rounding like warpgate.

sc.plp

diff --git a/sc.plp b/sc.plp
index 3c19fce353db8aff37c84b24153adeae9192e0da..e0465bac520acaa28cca7557c033d2fcd9b2637d 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -278,7 +278,7 @@ sub showrangeint {
                                $_->{transform},
                        ) :
                        !defined $_->{build} ? '<td>' : sprintf('<td class="val time"%s>%s%.0f',
-                               defined $_->{warp} && qq(title="$_->{build} without warpgate"),
+                               defined $_->{warp} && sprintf(' title="%.0f without warpgate"', $_->{build}),
                                !!$_->{base} && sprintf(
                                        '<span class="unit-composed" title="%s">+</span>',
                                        'from '.join('+', @{ $_->{base} }),