contrib/dump-asy.pl: Fix $ and & in window titles
Patch status: merged
Patch by Diego Ongaro
Long description:
These would produce asy/LaTeX parse errors before.
To apply this patch, use:
curl http://cr.i3wm.org/patch/158/raw.patch | git am
b/contrib/dump-asy.pl
14 |
@@ -32,6 +32,8 @@ sub dump_node { |
15 |
my $w = (defined($n->{window}) ? $n->{window} : "N"); |
16 |
my $na = $n->{name}; |
17 |
$na =~ s/#/\\#/g; |
18 |
+ $na =~ s/\$/\\\$/g; |
19 |
+ $na =~ s/&/\\&/g; |
20 |
$na =~ s/_/\\_/g; |
21 |
$na =~ s/~/\\textasciitilde{}/g; |
22 |
my $type = 'leaf'; |