From db9a7c8c671e88deff2e95b979c46a977f4a3a70 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Fri, 19 Mar 2021 16:41:46 +0100
Subject: [PATCH] added sneeky comma after \@matrikelnr

---
 src/HsH-report.cls | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index f3e2c27..2ea559f 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -313,7 +313,8 @@
 					\if\@author\@empty\else\usekomafont{author}{\parbox{\dimexpr\linewidth}{\centering\@author}}\fi
 				\else
 					\if\@author\@empty\else
-						\foreach \x [count=\i,evaluate=\i as \y using {{\@matrikelnr}[\i-1]}] in \@author {\eaddtabtoks{\x & \y\protect\\}}
+						% sneeky comma needed after \@matrikelnr to deal with single item list
+						\foreach \x [count=\i,evaluate=\i as \y using {{\@matrikelnr,}[\i-1]}] in \@author {\eaddtabtoks{\x & \y\protect\\}}
 						\usekomafont{author}{\begin{tabular}{l l}\printtabtoks\end{tabular}}
 					\fi
 				\fi}%
-- 
GitLab