Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
dump-asy.pl: Include floating_nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
orestisfl committed Sep 14, 2018
1 parent ede9541 commit 702e83c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/dump-asy.pl
Expand Up @@ -46,7 +46,7 @@ sub dump_node {

my $o = ($n->{orientation} eq 'none' ? "u" : ($n->{orientation} eq 'horizontal' ? "h" : "v"));
my $w = (defined($n->{window}) ? $n->{window} : "N");
my $na = ($n->{name} or "[Empty]");
my $na = ($n->{name} or ($n->{type} eq "floating_con" ? "[Floating con]" : "[Empty]"));
$na =~ s/#/\\#/g;
$na =~ s/\$/\\\$/g;
$na =~ s/&/\\&/g;
Expand All @@ -64,7 +64,8 @@ sub dump_node {
print $tmp "n" . $parent->{id} . ", " if defined($parent);
print $tmp "\"" . $name . "\");\n";

dump_node($_, $n) for @{$n->{nodes}};
dump_node($_, $n) for @{$n->{nodes}};
dump_node($_, $n) for @{$n->{floating_nodes}};
}

sub find_node_with_name {
Expand Down

0 comments on commit 702e83c

Please sign in to comment.