diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-12-08 19:08:52 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-12-08 19:08:52 +0000 |
commit | 8d96649ca3e148698156da7a3ecfe59b2812051e (patch) | |
tree | e32f2ae1b5337a5901a8d7d8103bfcda4a3eab42 /lib/sbin | |
parent | c0ff58e939552b4b254a3723852a1f93b2f62692 (diff) |
Bugfix to allow thornguide to have non-blank table of contents
and working auto-generated tables describing parameters, etc.
Fixes PR2071.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4392 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin')
-rw-r--r-- | lib/sbin/ThornUtils.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sbin/ThornUtils.pm b/lib/sbin/ThornUtils.pm index c3ff5b1d..91391cc4 100644 --- a/lib/sbin/ThornUtils.pm +++ b/lib/sbin/ThornUtils.pm @@ -392,9 +392,8 @@ sub CleanForLatex # escape special characters my $outval = ""; - foreach my $i (0 .. length($inval)-1) + foreach my $char (split(//,$inval)) { - my $char = $inval[i]; if ($char eq '{' or $char eq '}' or $char eq '$' or |