fix: correctly calculate maximum user name length

This commit is contained in:
Wolfgang Witt 2021-02-25 23:26:33 +01:00 committed by Wolfgang Witt
parent bc42f3072f
commit cd07a56a9f

View File

@ -565,7 +565,7 @@ examAutoOccurrence (hash -> seed) rule ExamAutoOccurrenceConfig{..} occurrences
postprocess result = seq resultAscList (resultAscList, resultUsers)
where
maxTagLength :: Int
maxTagLength = maybe 0 maximum $ fromNullable $ map (length . snd) result
maxTagLength = maybe 0 maximum $ fromNullable $ concatMap (map length . snd) result
rangeAlphabet :: [CI Char]
rangeAlphabet = case rule of