From: Diego Ongaro Date: Wed, 1 May 2013 05:12:33 +0000 (-0700) Subject: contrib/dump-asy.pl: Fix $ and & in window titles X-Git-Tag: 4.6~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22ca203b8081ba30e20a42ce9cb81ec793c36656;p=i3%2Fi3 contrib/dump-asy.pl: Fix $ and & in window titles These would produce asy/LaTeX parse errors before. --- diff --git a/contrib/dump-asy.pl b/contrib/dump-asy.pl index 47239f2d..c75dfcd0 100755 --- a/contrib/dump-asy.pl +++ b/contrib/dump-asy.pl @@ -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';