X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fview_attendee.sh;h=bdfdc6a621ebe2fe5ebfb0335f072d353d5c3352;hb=2d1ff8e80efbded90e01dc0fe477757bbc7e08f0;hp=e1b6530b49406a224763e1460128dd1a8b23d1b2;hpb=69e661b5c8ec195bd3c4998a623a60607b47059e;p=lobster
diff --git a/templates/view_attendee.sh b/templates/view_attendee.sh
index e1b6530..bdfdc6a 100755
--- a/templates/view_attendee.sh
+++ b/templates/view_attendee.sh
@@ -15,9 +15,15 @@
# You should have received a copy of the GNU Affero General Public License
# along with Confetti. If not, see .
+n=$(printf %s "$values[N]" \
+ | sed -rn 's:^([^;]*)(\;[^;]*)(\;[^;]*)?(\;[^;]*)?(\;[^;]*)?$:\4 \2 \3 \1 \5:gp' \
+ | sed -r 's:,: :;s:\;: :g;s: +: :g;s:^ $::;'
+ )
+fullname="${n:-${values[FN]:-${values[NICKNAME]}}}"
+
cat <
- $values[FN]
+ $fullname
${values[GENDER]:+$(l10n $values[GENDER])}
$(for n in NICKNAME NICKNAME{0..10}; do