Skip to content

Commit 4429ff7

Browse files
NikolaiFaNikolaiFa
authored andcommitted
Remove trailing spaces, use spaces for indentation
1 parent 5180a79 commit 4429ff7

File tree

7 files changed

+104
-104
lines changed

7 files changed

+104
-104
lines changed

.github/issue_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ about: File an issue
77
88
This project is used for the development of the FMI Standard (https://fmi-standard.org/)
99
10-
Do you want to ask a question? Are you looking for support?
10+
Do you want to ask a question? Are you looking for support?
1111
StackOverflow is the best place for getting support: https://stackoverflow.com/
1212
1313
Have you searched the existing issues for related proposals?

.github/workflows/build-spec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- 'v2.0.x'
1414

1515
jobs:
16-
16+
1717
build-code-snippets:
1818
runs-on: ubuntu-22.04
1919
steps:
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333

3434
- uses: actions/[email protected]
35-
35+
3636
- run: |
3737
PowerShell -ExecutionPolicy Bypass -Command ./generate_figures.ps1
3838

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tasks:
22
- name: HTML generation
33
command: docker run --rm -it -v $PWD:/documents/ asciidoctor/docker-asciidoctor asciidoctor -B /documents/ -b html5 --failure-level WARN -v docs/index.adoc
4-
4+
55
- name: Web server
66
command: python -m http.server 8000 --directory docs
77

CONTRIBUTING.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,15 @@ Please adhere to the coding conventions used throughout a project (indentation,
209209
210210
We use a branching scheme with _support_ branches that allows us to maintain multiple major and minor releases concurrently.
211211
212-
- **Main development branch `master`:**
212+
- **Main development branch `master`:**
213213
Holds the latest development version. This is where the _next_ version of the standard is developed.
214214
215-
- **Support branches `support/v<major>{.<minor>}.x`:**
216-
Upon every major release the latest version of `master` is tagged `v<major>.0`. The maintenance of this release is performed on a support branch `support/v<major>.x` starting at this tag.
215+
- **Support branches `support/v<major>{.<minor>}.x`:**
216+
Upon every major release the latest version of `master` is tagged `v<major>.0`. The maintenance of this release is performed on a support branch `support/v<major>.x` starting at this tag.
217217
Examples: `support/v3.x`, `support/v2.0.x`
218218
219-
- **Tags `v<major>.<minor>{.<patch>}{-{alpha|beta|rc}.<number>}`:**
220-
Releases and pre-releases are tagged on the respective branches following the [Semantic Versioning](https://semver.org/) when the API, XSD schema or file structure of the FMU archive change.
219+
- **Tags `v<major>.<minor>{.<patch>}{-{alpha|beta|rc}.<number>}`:**
220+
Releases and pre-releases are tagged on the respective branches following the [Semantic Versioning](https://semver.org/) when the API, XSD schema or file structure of the FMU archive change.
221221
Examples: `v3.0-alpha.3`, `v3.0-beta.2`, `v3.0-rc.1`, `v3.0`
222222
223223
```
@@ -269,7 +269,7 @@ When writing or editing the specification documents please follow the [AsciiDoc
269269
- Use Atx style [section titles](https://asciidoctor.org/docs/asciidoc-recommended-practices/#section-titles)
270270
- Use four dashes (`----`) for [delimited blocks](https://asciidoctor.org/docs/asciidoc-recommended-practices/#delimited-blocks)
271271
- Use the asterisk (`*`) as marker for nested [lists](https://asciidoctor.org/docs/asciidoc-recommended-practices/#lists)
272-
- Use angle brackets and backticks when citing XML elements.
272+
- Use angle brackets and backticks when citing XML elements.
273273
Example:
274274
```
275275
The internal step size can be provided by the attribute <<fixedInternalStepSize>> in element `<fmiModelDescription><CoSimulation>`.
@@ -287,7 +287,7 @@ Quotes must only be included if they are part of the original source or markup c
287287
288288
### Cross References
289289
290-
When creating a [cross reference](https://asciidoctor.org/docs/asciidoc-writers-guide/#cross-references) (xref) use dash-separated, all-lowercase names.
290+
When creating a [cross reference](https://asciidoctor.org/docs/asciidoc-writers-guide/#cross-references) (xref) use dash-separated, all-lowercase names.
291291
Example:
292292
293293
```
@@ -298,7 +298,7 @@ Example:
298298
These parts are defined in <<fmi-common-concepts>>.
299299
```
300300
301-
To reference a function, type, definition or argument, use its name as xref and add a pre-formatted label. Do not add brackets to function names.
301+
To reference a function, type, definition or argument, use its name as xref and add a pre-formatted label. Do not add brackets to function names.
302302
Example:
303303
304304
```
@@ -315,16 +315,16 @@ A Clock interval is set by the environment for the current time instant by the f
315315
316316
### Spelling and Capitalization
317317
318-
- Names start with a capital letter.
319-
Example:
318+
- Names start with a capital letter.
319+
Example:
320320
> A Co-Simulation FMU is different from a Model Exchange FMU.
321321
322-
- General concepts are lower case.
323-
Example:
322+
- General concepts are lower case.
323+
Example:
324324
> A co-simulation environment is different from a model exchange environment.
325325
326-
- Segments of C or XML are cited exactly as they appear in the code.
327-
Example:
326+
- Segments of C or XML are cited exactly as they appear in the code.
327+
Example:
328328
> The <<fmiModelDescription>> of a Model Exchange FMU must contain a `<ModelExchange>` element.
329329
330330
- Headings are to be capitalized with the following rules:
@@ -333,7 +333,7 @@ A Clock interval is set by the environment for the current time instant by the f
333333
334334
### Non-ASCII Characters
335335
336-
To avoid encoding problems AsciiDoc files may only contain ASCII characters. Non-ASCII characters can be escaped using the decimal representation of the Unicode character.
336+
To avoid encoding problems AsciiDoc files may only contain ASCII characters. Non-ASCII characters can be escaped using the decimal representation of the Unicode character.
337337
Example:
338338
339339
```
@@ -365,7 +365,7 @@ will be rendered as
365365
366366
### Italic Paragraphs
367367
368-
Every line of an italic paragraph (e.g. in non-normative text) should be surrounded by underscores, so the text is highlighted correctly in code editors.
368+
Every line of an italic paragraph (e.g. in non-normative text) should be surrounded by underscores, so the text is highlighted correctly in code editors.
369369
Example:
370370
371371
```
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<fmiModelDescription fmiVersion="3.0" modelName="ThreeInputClocks" instantiationToken="ThreeInputClocks">
3-
<ScheduledExecution modelIdentifier="ThreeInputClocks"/>
4-
<LogCategories>
5-
<Category name="logStatusError" description="Log error messages"/>
6-
</LogCategories>
7-
<DefaultExperiment startTime="0" stopTime="6" stepSize="0.001"/>
8-
<ModelVariables>
9-
<!-- Variables related to input clock 10msClock -->
10-
<Float64 name="AIn1" valueReference="0" causality="input" variability="discrete" clocks="5"
11-
start="0"/>
12-
<Float64 name="AIn2" valueReference="1" causality="input" variability="discrete" clocks="5"
13-
start="0"/>
14-
<Float64 name="AOut" valueReference="2" causality="output" variability="discrete" clocks="5"/>
3+
<ScheduledExecution modelIdentifier="ThreeInputClocks"/>
4+
<LogCategories>
5+
<Category name="logStatusError" description="Log error messages"/>
6+
</LogCategories>
7+
<DefaultExperiment startTime="0" stopTime="6" stepSize="0.001"/>
8+
<ModelVariables>
9+
<!-- Variables related to input clock 10msClock -->
10+
<Float64 name="AIn1" valueReference="0" causality="input" variability="discrete" clocks="5"
11+
start="0"/>
12+
<Float64 name="AIn2" valueReference="1" causality="input" variability="discrete" clocks="5"
13+
start="0"/>
14+
<Float64 name="AOut" valueReference="2" causality="output" variability="discrete" clocks="5"/>
1515

16-
<!-- Variables related to input clock AperiodicClock -->
17-
<Float64 name="BIn" valueReference="3" causality="input" variability="discrete" clocks="6"
18-
start="0"/>
19-
<Float64 name="BOut" valueReference="4" causality="output" variability="discrete" clocks="6"/>
16+
<!-- Variables related to input clock AperiodicClock -->
17+
<Float64 name="BIn" valueReference="3" causality="input" variability="discrete" clocks="6"
18+
start="0"/>
19+
<Float64 name="BOut" valueReference="4" causality="output" variability="discrete" clocks="6"/>
2020

21-
<!-- Clock variables -->
22-
<!-- Periodic input clock -->
23-
<Clock name="10msClock" valueReference="5" causality="input" intervalVariability="constant"
24-
priority="1" intervalDecimal="0.01"/>
25-
<!-- Input clock that is triggered by 10msClock -->
26-
<Clock name="AperiodicClock" valueReference="6" causality="input" intervalVariability="countdown"
27-
priority="2" clocks="5"/>
28-
<!-- Output clock -->
29-
<Clock name="OutputClock" valueReference="7" causality="output" intervalVariability="triggered"
30-
clocks="5"/>
31-
<!-- Periodic input clock -->
32-
<Clock name="50msClock" valueReference="8" causality="input" intervalVariability="constant"
33-
priority="3" intervalDecimal="0.05"/>
34-
</ModelVariables>
35-
<ModelStructure>
36-
<Output valueReference="2" dependencies="0 1 5"/>
37-
<Output valueReference="4" dependencies="3 6"/>
38-
<Output valueReference="7" dependencies="5"/>
39-
</ModelStructure>
21+
<!-- Clock variables -->
22+
<!-- Periodic input clock -->
23+
<Clock name="10msClock" valueReference="5" causality="input" intervalVariability="constant"
24+
priority="1" intervalDecimal="0.01"/>
25+
<!-- Input clock that is triggered by 10msClock -->
26+
<Clock name="AperiodicClock" valueReference="6" causality="input" intervalVariability="countdown"
27+
priority="2" clocks="5"/>
28+
<!-- Output clock -->
29+
<Clock name="OutputClock" valueReference="7" causality="output" intervalVariability="triggered"
30+
clocks="5"/>
31+
<!-- Periodic input clock -->
32+
<Clock name="50msClock" valueReference="8" causality="input" intervalVariability="constant"
33+
priority="3" intervalDecimal="0.05"/>
34+
</ModelVariables>
35+
<ModelStructure>
36+
<Output valueReference="2" dependencies="0 1 5"/>
37+
<Output valueReference="4" dependencies="3 6"/>
38+
<Output valueReference="7" dependencies="5"/>
39+
</ModelStructure>
4040
</fmiModelDescription>

generate_figures.ps1

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,66 +5,66 @@ $generatorDir = Join-Path $PSScriptRoot "xsddiagram"
55
$generator = Join-Path $generatorDir "XSDDiagramConsole.exe"
66

77
function Clear-Gen() {
8-
# Get-ChildItem $pngOutDir\*
9-
if (Test-Path $generatorDir){
10-
Remove-Item -Recurse $generatorDir
11-
}
12-
Remove-Item $pngOutDir\*
8+
# Get-ChildItem $pngOutDir\*
9+
if (Test-Path $generatorDir){
10+
Remove-Item -Recurse $generatorDir
11+
}
12+
Remove-Item $pngOutDir\*
1313
}
1414

1515
function Get-XSDDiagram() {
16-
if (-Not (Test-Path $generator))
17-
{
18-
$uri = "https://github.com/clagms/xsddiagram/releases/download/XSDDiagram_1.3_FMI/XSDDiagram_1.3_FMI.zip"
19-
$zipFile = "XSDDiagram-Binary.zip"
20-
Invoke-WebRequest -Uri $uri -OutFile $zipFile
21-
Expand-Archive -Path $zipFile -DestinationPath $generatorDir -Force
22-
Remove-Item -Path $zipFile
23-
}
16+
if (-Not (Test-Path $generator))
17+
{
18+
$uri = "https://github.com/clagms/xsddiagram/releases/download/XSDDiagram_1.3_FMI/XSDDiagram_1.3_FMI.zip"
19+
$zipFile = "XSDDiagram-Binary.zip"
20+
Invoke-WebRequest -Uri $uri -OutFile $zipFile
21+
Expand-Archive -Path $zipFile -DestinationPath $generatorDir -Force
22+
Remove-Item -Path $zipFile
23+
}
2424
}
2525

2626
function Check-Existing() {
27-
Param(
28-
$file
29-
)
30-
If (Test-Path $file -PathType Leaf) {
31-
Write-Output "Error: File already exists."
32-
Exit 1
33-
}
27+
Param(
28+
$file
29+
)
30+
If (Test-Path $file -PathType Leaf) {
31+
Write-Output "Error: File already exists."
32+
Exit 1
33+
}
3434
}
3535

3636
function Export-Schema() {
37-
Param(
38-
$element,
39-
$expand,
40-
$schema = "fmi3ModelDescription.xsd",
41-
$outName = $element + ".png",
42-
[switch] $preview = $false
43-
)
44-
Write-Output "Generating schema for $element..."
45-
$out = Join-Path $pngOutDir $outName
46-
Check-Existing $out
37+
Param(
38+
$element,
39+
$expand,
40+
$schema = "fmi3ModelDescription.xsd",
41+
$outName = $element + ".png",
42+
[switch] $preview = $false
43+
)
44+
Write-Output "Generating schema for $element..."
45+
$out = Join-Path $pngOutDir $outName
46+
Check-Existing $out
4747

48-
$schema = (Resolve-Path (Join-Path $PSScriptRoot "\schema\$schema"))
49-
if ($verbose) {
50-
Write-Output "Generator command parameters:"
51-
Write-Output " exe: $generator"
52-
Write-Output " out: $out"
53-
Write-Output " element: $element"
54-
Write-Output " expand: $expand"
55-
Write-Output " schema: $schema"
56-
}
48+
$schema = (Resolve-Path (Join-Path $PSScriptRoot "\schema\$schema"))
49+
if ($verbose) {
50+
Write-Output "Generator command parameters:"
51+
Write-Output " exe: $generator"
52+
Write-Output " out: $out"
53+
Write-Output " element: $element"
54+
Write-Output " expand: $expand"
55+
Write-Output " schema: $schema"
56+
}
5757

58-
& $generator -o $out -r $element -e $expand -d -c -z 300 -a -no-gui -y $schema
58+
& $generator -o $out -r $element -e $expand -d -c -z 300 -a -no-gui -y $schema
5959

60-
If ((Get-Item $out).length -eq 0kb) {
61-
Write-Output "Error generating file $out"
62-
exit 1
63-
}
60+
If ((Get-Item $out).length -eq 0kb) {
61+
Write-Output "Error generating file $out"
62+
exit 1
63+
}
6464

65-
if ($preview) {
66-
Start-Process $out
67-
}
65+
if ($preview) {
66+
Start-Process $out
67+
}
6868
}
6969

7070
Clear-Gen

schema/fmi3LayeredStandardManifest.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
----------------------------------------------------------------------------
3737
</xs:documentation>
3838
</xs:annotation>
39-
39+
4040
<xs:attribute name="fmi-ls-name" type="xs:normalizedString">
4141
<xs:annotation>
4242
<xs:documentation xml:lang="en">
@@ -64,7 +64,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6464
</xs:documentation>
6565
</xs:annotation>
6666
</xs:attribute>
67-
67+
6868
<xs:attributeGroup name="ALayeredStandardManifest">
6969
<xs:annotation>
7070
<xs:documentation xml:lang="en">

0 commit comments

Comments
 (0)