From: paul Date: Tue, 8 Apr 2014 10:28:55 +0000 (+0000) Subject: Dirty: avoid some latex control characters X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=50b69b029a2f5efb1efb1258aa1e9e3e18cee141;p=lobster Dirty: avoid some latex control characters svn path=/trunk/; revision=46 --- 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