Skip to content

Commit

Permalink
Remove newlines at end of Text primitive. (modelica#4187)
Browse files Browse the repository at this point in the history
Newline behavior in Text primitives is undefined, and in these cases seem to serve no purpose regardless.
  • Loading branch information
maltelenz committed Dec 13, 2023
1 parent 0c3a43c commit e51c78d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Expand Up @@ -357,12 +357,10 @@ Simulate for 30 seconds and plot (versus <code>rotorAngleM3.rotorDisplacementAng
pattern=LinePattern.Dash),Text(
extent={{10,16},{70,8}},
textStyle={TextStyle.Bold},
textString="%m-phase machine
"), Text(
textString="%m-phase machine"), Text(
extent={{10,-52},{70,-60}},
textStyle={TextStyle.Bold},
textString="Three-phase machine
"), Rectangle(
textString="Three-phase machine"), Rectangle(
extent={{-50,-60},{100,-100}},
fillColor={255,255,170},
fillPattern=FillPattern.Solid,
Expand Down
Expand Up @@ -301,10 +301,8 @@ and accelerate the inertias. Two equivalent machines with different numbers of p
pattern=LinePattern.Dash),Text(
extent={{40,-54},{100,-62}},
textStyle={TextStyle.Bold},
textString="Three-phase machine
"), Text(
textString="Three-phase machine"), Text(
extent={{40,-44},{100,-52}},
textStyle={TextStyle.Bold},
textString="%m-phase machine
")}));
textString="%m-phase machine")}));
end SMPM_Inverter_Polyphase;
Expand Up @@ -276,12 +276,10 @@ Simulate for 1.5 seconds and plot (versus time):
pattern=LinePattern.Dash),Text(
extent={{40,-44},{100,-52}},
textStyle={TextStyle.Bold},
textString="%m-phase machine
"), Text(
textString="%m-phase machine"), Text(
extent={{40,-54},{100,-62}},
textStyle={TextStyle.Bold},
textString="Three-phase machine
"), Rectangle(
textString="Three-phase machine"), Rectangle(
extent={{-20,-60},{100,-100}},
fillColor={255,255,170},
fillPattern=FillPattern.Solid,
Expand Down

0 comments on commit e51c78d

Please sign in to comment.