Le018 — Inline newline inside an unterminated literal silently concatenated

§12.1a encoding/strings (sub-class: control characters / framing)

P1 — silent data loss

round-trip encoding

Sources

Description

Per §5.2, LF and CR are ignored characters even inside string literals, so a literal `'first line<LF>second line'` parses to `'first linesecond line'`. This produces surprising silent concatenation when round-tripping descriptions written across physical lines.

Reproducer recipe

`FILE_DESCRIPTION(('first line<LF>second line'),'2;1');`

Expected kernel behavior

Heal and accept per spec (LF ignored, string content becomes concatenated). Tolerant writers should pre-encode `\X\0A` if a real newline was intended; readers should preserve input bytes when echoing diagnostics.

Notes

**See also**: Le017. Synonyms: "string spanning multiple lines silently joined", "newline inside literal eaten", "two-line description merged into one", "STEP string joins lines without separator", "multiline literal becomes single line".

Expected validation

occt=empty/empty gmsh=empty ifc=reject

Byte assertions

Tier-3 assertions

Cross-references

Le017

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Le018: Inline newline inside string literal silently concatenated; ISO 10303-21 §5.2: LF and CR are ignored (whitespace) even inside string literals; a literal newline in 'first line<LF>second line' causes the two halves to join without a separator, yielding 'first linesecond line'; producers writing multi-line descriptions across physical lines lose content; receivers must heal and accept per spec (LF is ignored, not an error); tolerant writers should pre-encode \X\0A when a real newline is intended; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('first line
5second line''),'2;1');
6FILE_NAME('Le018.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
8ENDSEC;
9DATA;
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=GEOMETRIC_CURVE_SET('',(#1));
12#8999=PERSON('p1','para1
13para2','');
14
15ENDSEC;
16END-ISO-10303-21;