[Capella 6.1]: Misalignement of Requirement informations

Hi
In Capella-5.1, informations about requirements like long_name, name, chapter, etc. where written each in a row (see figure).
image

Unfortunately, in Capella-6.1, all these informations are in the same row (see figure).
image

Of course, this make diagram hard to to read because of the size of requirement object.

Kind Regards

Can you check if anything changed in the expression used to display these texts on the diagrams? You can see it by right-clicking on the first element inside your aird file and selecting “Requirements Viewpoint->Configure Requirements Label in Diagram”

Stephane

Stéphane,

Expressions in 5.1 and 6.1 are same.
May be the issue is located in configuration o.design file.

ok, I suppose it is probably a bug, please raise it on the Capella github

The cause of this bug start inside the method

CapellaRequirementsOpenJavaService#evaluateExpression

Called by the method

CapellaRequirementsOpenJavaService#getRequirementTitle

Indeed, let’s check line 390

Capella-5.1 with VP_Requirement-0.12.2

390: String sanytizedResult = LabelHelper.transformHTMLToTextWithLineFeed(evaluationResult);

Capella-61 with VP_Requirement-0.13.1

390: String sanytizedResult = LabelHelper.unescape( LabelHelper.transformHTMLToText(evaluationResult) );

So, there is something going wrong with the method

StringEscapeUtils#unescapeHtml

called by

LabelHelper#unescape

It seems like the called method

StringEscapeUtils#unescapeHtml

Also remove the newline tag.

When I remove the call to

LabelHelper#unescape

Then alignment works fine again!

Kind Regards

I see this bug wasn’t addressed yet… :confused: