aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDiego Ongaro <ongardie@gmail.com>2013-04-30 22:12:33 -0700
committerMichael Stapelberg <michael@stapelberg.de>2013-05-05 12:55:54 +0200
commit22ca203b8081ba30e20a42ce9cb81ec793c36656 (patch)
treeb2de23c741f33f75e1c1567880d4d2f525d518d4 /contrib
parent0f6b5fe8dafe0a7f903d84b1f1f9e6689bddfc1e (diff)
downloadi3-22ca203b8081ba30e20a42ce9cb81ec793c36656.tar.gz
i3-22ca203b8081ba30e20a42ce9cb81ec793c36656.zip
contrib/dump-asy.pl: Fix $ and & in window titles
These would produce asy/LaTeX parse errors before.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/dump-asy.pl2
1 files changed, 2 insertions, 0 deletions
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';