chiark / gitweb /
dice: Don't include p in process_node.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 19 May 2022 17:13:10 +0000 (18:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 19 May 2022 18:58:10 +0000 (19:58 +0100)
The text noce is going to want to do something odd.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dice/overlay-template-extractor

index 9ab896f71e9fe0b3682c015e10338fb2cd4d731b..3f75980c6d91c33f31b41e96282fc2b23e48c512 100755 (executable)
@@ -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 <text> 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}}");