diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 8dbd3ec73..ddb59bc96 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -328,6 +328,9 @@ export class AnnotationWrapper { if (entry.reason) { content += entry.reason + '\n\n'; + //remove leading and trailing commas and whitespaces + content = content.replace(/^[, ]*|[, ]*$/g, ''); + content = content.substring(0, 1).toUpperCase() + content.substring(1); } if (annotationWrapper.legalBasis) {