Le057 — Records terminated with `;\n` plus extra blank lines between records

§12.1a encoding/strings (sub-class: end-of-record / non-canonical EOR)

P1 — silent data loss

spec-violation encoding

Sources

Sender

deduced — producers that hand-format Part-21 for human readability, post-process with text editors, or round-trip through tools that auto-insert blank lines (some VCS line-ending normalisers, some pretty-printers)

Description

ISO 10303-21 §6.2 allows arbitrary whitespace (including newlines) between records; the record terminator is the `;`, and what follows is lexically free until the next record's leading token. A producer that emits each record on its own line plus a trailing blank line (`..);\n\n`) is technically conformant but stresses streaming tokenisers that special-case `;\n` as a "next record starts here" boundary. Mixing `;\n` and `;\n\n` and `; #NEXT=` (no separator) within the same DATA section is non-canonical: a strict tokeniser that picks one form may mis-frame the others. Bug-reporter language: "STEP file has blank lines between records", "extra newlines confuse parser", "EOR formatting inconsistent across DATA section".

Reproducer recipe

a DATA section where some records end with `;\n` and the next begins immediately, others end with `;\n\n` (blank line between), and one record runs `;` followed by another record on the same line `;#11=..`. All three are spec-conformant; the inconsistency is the defect.

Expected kernel behavior

tokenise on `;` alone; treat all whitespace (including blank lines) between records as ignorable. Never reject a file for inter-record whitespace variation.

Notes

Sibling of Le056 (Part 1, different EOR variant). **See also**: Le054, Le056, Le058. Synonyms: "blank lines in STEP DATA", "non-canonical record separator", "mixed EOR whitespace".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Le054, Le056, Le058

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Le057: Records terminated with ;\n plus extra blank lines between records; ISO 10303-21 §6.2: record terminator is ';'; arbitrary whitespace (including newlines) between records is allowed; producers that emit ;\n\n (blank line after each record) are technically conformant but stress streaming tokenisers that special-case ;\n as a record boundary; defect: DATA section mixes three EOR styles within one file — ;\n (no separator), ;\n\n (blank line), and ; on same line as next record; non-canonical mixing is the defect — inconsistency harder to diagnose than a uniformly long-form or uniformly compact file; receiver must tokenise on ';' alone and treat all inter-record whitespace (including blank lines) as ignorable; never reject for EOR whitespace variation; sibling of Le056; see also Le054, Le058; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le057'),'2;1');
5FILE_NAME('Le057.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=GEOMETRIC_CURVE_SET('',(#1));
11#8997=PERSON('style-a-immediate','no-blank-line','');
12
13#8998=PERSON('style-b-blank-line','blank-line-before','');#8999=PERSON('style-c-same-line','next-on-same-line','');
14
15ENDSEC;
16END-ISO-10303-21;