From 4fe42a60801584b40631842a173a5a0438d78f92 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 19 May 2022 18:13:10 +0100 Subject: [PATCH] dice: Don't include p in process_node. The text noce is going to want to do something odd. No functional change. Signed-off-by: Ian Jackson --- dice/overlay-template-extractor | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dice/overlay-template-extractor b/dice/overlay-template-extractor index 9ab896f7..3f75980c 100755 --- a/dice/overlay-template-extractor +++ b/dice/overlay-template-extractor @@ -26,7 +26,7 @@ sub process_node ($$) { die "$label ?" unless @$nodes == 1; $node = $nodes->[0]; $fn->($node); - p $node->toString, "\n"; + $node->toString. "\n"; } our $nom_radius; @@ -66,15 +66,15 @@ sub filter_text () { } # This node also acts as the sentinel for when the JS # wants to remove the cooldown timer. -process_node('textlabel', \&filter_text); +p process_node('textlabel', \&filter_text); p "{% if cooldown_active %}\n"; -process_node('timeblack', sub { +p process_node('timeblack', sub { $nom_radius = $node->getAttribute('r'); filter_circle(); }); -process_node('timewhite', \&filter_circle); -process_node('timegrey', sub { +p process_node('timewhite', \&filter_circle); +p process_node('timegrey', sub { filter_element('path'); $node->setAttribute('d', "{{path_d}}"); $node->setAttribute('id', "{{cd_elid}}"); -- 2.30.2