Hello,
I am trying to display a long description text in Vaadin window using a Label component. The problem is that, the text format in the interface is a single line, or a none structured text with paragraph, even though the original text in the database is structured.
[code]
public Component buildDescription(){
CssLayout descriptionLayout = new CssLayout();
descriptionLayout.setSizeFull();
Responsive.makeResponsive(descriptionLayout);
descriptionLayout.addComponent(new Label(“
Description
”, ContentMode.HTML));descriptionLayout.addComponent(new Label(singlePatent.getDescription(), ContentMode.PREFORMATTED));
return descriptionLayout;
}
[/code]I have tried to use all the content modes, with no success, ContentMode.HTML, TEXT
In the css I have tried
/*word-break: break-word;*/
/*word-wrap: break-word;*/
with no success.
I have attached some text that I used for testing.
Please help me how to achieve the proper text formating in Vaadin.

