contrib/dump-asy.pl: Fix $ and & in window titles
These would produce asy/LaTeX parse errors before.
This commit is contained in:
parent
0f6b5fe8da
commit
22ca203b80
|
@ -32,6 +32,8 @@ sub dump_node {
|
|||
my $w = (defined($n->{window}) ? $n->{window} : "N");
|
||||
my $na = $n->{name};
|
||||
$na =~ s/#/\\#/g;
|
||||
$na =~ s/\$/\\\$/g;
|
||||
$na =~ s/&/\\&/g;
|
||||
$na =~ s/_/\\_/g;
|
||||
$na =~ s/~/\\textasciitilde{}/g;
|
||||
my $type = 'leaf';
|
||||
|
|
Loading…
Reference in New Issue