From 08c3322fbbc222d535846dd273254452f48fb956 Mon Sep 17 00:00:00 2001 From: uogau Date: Fri, 18 Jun 2021 13:28:50 +0200 Subject: [PATCH] Small fix for last Commit --- .../kit/typicalc/view/content/errorcontent/ErrorView.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/kit/typicalc/view/content/errorcontent/ErrorView.java b/src/main/java/edu/kit/typicalc/view/content/errorcontent/ErrorView.java index 1444857..65471a2 100644 --- a/src/main/java/edu/kit/typicalc/view/content/errorcontent/ErrorView.java +++ b/src/main/java/edu/kit/typicalc/view/content/errorcontent/ErrorView.java @@ -2,7 +2,11 @@ package edu.kit.typicalc.view.content.errorcontent; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.dependency.CssImport; -import com.vaadin.flow.component.html.*; +import com.vaadin.flow.component.html.Div; +import com.vaadin.flow.component.html.H3; +import com.vaadin.flow.component.html.Paragraph; +import com.vaadin.flow.component.html.Span; +import com.vaadin.flow.component.html.Pre; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.i18n.LocaleChangeEvent; import com.vaadin.flow.i18n.LocaleChangeObserver; @@ -52,7 +56,7 @@ public class ErrorView extends VerticalLayout implements LocaleChangeObserver { switch (error) { case TOO_FEW_TOKENS: - additionalInformation.add(new Label(getTranslation("root.tooFewTokensHelp"))); + additionalInformation.add(new Span(getTranslation("root.tooFewTokensHelp"))); break; case UNEXPECTED_TOKEN: Optional cause = error.getCause();