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

Commit

Permalink
contrib/dump-asy.pl: Fix $ and & in window titles
Browse files Browse the repository at this point in the history
These would produce asy/LaTeX parse errors before.
  • Loading branch information
ongardie authored and stapelberg committed May 5, 2013
1 parent 0f6b5fe commit 22ca203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/dump-asy.pl
Expand Up @@ -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';
Expand Down

0 comments on commit 22ca203

Please sign in to comment.