From 62cf31235c0b483875701c62d5bc79b0471d1002 Mon Sep 17 00:00:00 2001 From: Matthias Schaefer <86839591+MatthiasBSchaefer@users.noreply.github.com> Date: Tue, 30 Jun 2026 10:40:03 +0200 Subject: [PATCH 1/7] Insert Spaces in Modelica.Blocks.Sources.mo for better readability --- Modelica/Blocks/Sources.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index b9e98fb5ed..2ce7e5012b 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -43,7 +43,7 @@ variable y is both a variable and a connector. block IntegerExpression "Set output signal to a time varying Integer expression" - Modelica.Blocks.Interfaces.IntegerOutput y=0 "Value of Integer output" + Modelica.Blocks.Interfaces.IntegerOutput y = 0 "Value of Integer output" annotation (Dialog(group="Time varying output signal"), Placement( transformation(extent={{100,-10},{120,10}}))); From 0c6865e7aa4b54d35adf2326fcdb21c117e24022 Mon Sep 17 00:00:00 2001 From: Matthias Schaefer <86839591+MatthiasBSchaefer@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:27:39 +0200 Subject: [PATCH 2/7] Fix formatting of RealOutput declaration in Sources.mo --- Modelica/Blocks/Sources.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index 2ce7e5012b..97573ae36d 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -7,7 +7,7 @@ package Sources block RealExpression "Set output signal to a time varying Real expression" - Modelica.Blocks.Interfaces.RealOutput y=0.0 "Value of Real output" + Modelica.Blocks.Interfaces.RealOutput y = 0.0 "Value of Real output" annotation (Dialog(group="Time varying output signal"), Placement( transformation(extent={{100,-10},{120,10}}))); From 7a209a18ab4639ce4d2d7cac30d8183b228cc042 Mon Sep 17 00:00:00 2001 From: Matthias Schaefer <86839591+MatthiasBSchaefer@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:45:05 +0200 Subject: [PATCH 3/7] Fix formatting of BooleanOutput declaration --- Modelica/Blocks/Sources.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index 97573ae36d..843ef90843 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -79,7 +79,7 @@ variable y is both a variable and a connector. block BooleanExpression "Set output signal to a time varying Boolean expression" - Modelica.Blocks.Interfaces.BooleanOutput y=false "Value of Boolean output" + Modelica.Blocks.Interfaces.BooleanOutput y = false "Value of Boolean output" annotation (Dialog(group="Time varying output signal"), Placement( transformation(extent={{100,-10},{120,10}}))); From bf914ede4d6d3bd45be131f9ed20b0037e684ebf Mon Sep 17 00:00:00 2001 From: Matthias Schaefer <86839591+MatthiasBSchaefer@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:51:34 +0200 Subject: [PATCH 4/7] Fix annotation formatting in BooleanExpression block --- Modelica/Blocks/Sources.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index 843ef90843..5d1ca7f2e0 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -80,7 +80,7 @@ variable y is both a variable and a connector. "Set output signal to a time varying Boolean expression" Modelica.Blocks.Interfaces.BooleanOutput y = false "Value of Boolean output" - annotation (Dialog(group="Time varying output signal"), Placement( + annotation (Dialog(group = "Time varying output signal"), Placement( transformation(extent={{100,-10},{120,10}}))); annotation (Icon(coordinateSystem( From 46e132633b7f48df79ef9466c9c60d784e6cad04 Mon Sep 17 00:00:00 2001 From: Matthias Schaefer <86839591+MatthiasBSchaefer@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:59:32 +0200 Subject: [PATCH 5/7] Fix formatting of parameter declaration in Constant block --- Modelica/Blocks/Sources.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index 5d1ca7f2e0..bb6e672800 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -162,7 +162,7 @@ The Real output y is a clock signal: end ContinuousClock; block Constant "Generate constant signal of type Real" - parameter Real k(start=1) "Constant output value" + parameter Real k(start = 1) "Constant output value" annotation(Dialog(groupImage="modelica://Modelica/Resources/Images/Blocks/Sources/Constant.png")); extends Interfaces.SO; From e4186e45200f22d10b6fdce0bff7957a129eb5de Mon Sep 17 00:00:00 2001 From: Matthias Schaefer <86839591+MatthiasBSchaefer@users.noreply.github.com> Date: Wed, 1 Jul 2026 12:20:15 +0200 Subject: [PATCH 6/7] Fix annotation formatting in Sources.mo --- Modelica/Blocks/Sources.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index bb6e672800..daac4dc938 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -45,7 +45,7 @@ variable y is both a variable and a connector. Modelica.Blocks.Interfaces.IntegerOutput y = 0 "Value of Integer output" annotation (Dialog(group="Time varying output signal"), Placement( - transformation(extent={{100,-10},{120,10}}))); + transformation(extent = {{100,-10},{120,10}}))); annotation (Icon(coordinateSystem( preserveAspectRatio=false, From d890fc7965daeb12cfcfab4abf242228d139d2e7 Mon Sep 17 00:00:00 2001 From: Matthias Schaefer <86839591+MatthiasBSchaefer@users.noreply.github.com> Date: Fri, 10 Jul 2026 08:44:30 +0200 Subject: [PATCH 7/7] Fix graphics extent in Sources.mo annotation --- Modelica/Blocks/Sources.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index daac4dc938..46167d7734 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -49,7 +49,7 @@ variable y is both a variable and a connector. annotation (Icon(coordinateSystem( preserveAspectRatio=false, - extent={{-100,-100},{100,100}}), graphics={ + extent = {{-100,-100},{100,100}}), graphics = { Rectangle( extent={{-100,40},{100,-40}}, fillColor={235,235,235},