Systems-Modeling / SysML-v2-Pilot-Implementation

Proof-of-concept pilot implementation of the SysML v2 textual notation and visualization
GNU Lesser General Public License v3.0
128 stars 24 forks source link

ST6RI-639 Incorrect rendering if no separator before a feature value (PlantUML) #450

Closed himi closed 1 year ago

himi commented 1 year ago

The current visualizer prints textual notation for feature values and if it does not have a separator such as leading spaces or equal sign, the results looks just concatenated with the feature name. This PR inserts an equal or space before the feature values if the corresponding text has no leading spaces.

himi commented 1 year ago

After this fix,

action a1 {
        action sendAction send es via a1 {
            in es;
        }
} 

gives Screenshot 2023-01-18 at 12 50 46 PM

himi commented 1 year ago

Sorry. My silly mistake.

package TestFeatureValue {
    action aa {
        action sendAction send es via a1 {
            in es;
        }
    }
    attribute a = (1,2);

    part p1;    
    part p2 = p1;

    action a1;
    action a2 = a1;
}

gives Screenshot 2023-01-18 at 6 04 20 PM