From 50b69b029a2f5efb1efb1258aa1e9e3e18cee141 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 8 Apr 2014 10:28:55 +0000 Subject: [PATCH] Dirty: avoid some latex control characters svn path=/trunk/; revision=46 --- actions/generate_courselist.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/actions/generate_courselist.sh b/actions/generate_courselist.sh index 640e3f1..2b6b9ea 100755 --- a/actions/generate_courselist.sh +++ b/actions/generate_courselist.sh @@ -9,6 +9,11 @@ fromdate=$(date -d "$fromdate" +%s) . ${_EXEC}/pages/courses.sh loadfunctions . ${_EXEC}/pages/attendees.sh loadfunctions +tex_clean() { #in dire need for improvement + echo "$*" |tr -d '{&}\' +} + + list_attendee() { #Parameter: Cardfile id="$1" cardfile="$_DATA/vcard/${id}" @@ -25,7 +30,7 @@ list_attendee() { #Parameter: Cardfile if [ -z "$key" ]; then eval "$line" else - values[$key]="$value" + values[$key]="$(tex_clean "$value")" for t in ${(k)tag}; do tags[${key}_$t]="$tag[$t]" done @@ -68,7 +73,7 @@ get_dates() { #Parameter: Calendarfile if [ -z "$key" ]; then eval "$line" else - values[$key]="$value" + values[$key]="$(tex_clean "$value")" for t in ${(k)tag}; do tags[${key}_$t]="$tag[$t]" done -- 2.39.2