step-examples/12-13-writer-pathology/Wr004.stp
Sources
- KiCad MCAD exporter issue tracker
- bug-reporter language: "diff is unreadable"
Sender
KiCad PCB-to-STEP exporter and a few homegrown writers
Description
Continuation lines for long records mix TAB (0x09) and SPACE (0x20) for indentation, or use TAB for some continuations and 2-SPACE for others within the same file. Parsers don't care; humans diffing or reviewing exports do. Bug-reporter language: "tabs and spaces mixed", "indentation inconsistent", "looks bad in editor".
Reproducer recipe
a long argument list where some continuation lines start with a TAB and others start with two SPACEs.
Expected kernel behavior
Heal and accept: normalize by ignoring the whitespace.
Notes
Cosmetic only, but reviewer-fatiguing. Provenance tier: writer-side (Q5 reclassification 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
writer-side — defect not fully embodied in fixture bytes.
Byte assertions
matches(rb'\n\t') and matches(rb'\n ')contains(b'\t')
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Wr004: continuation lines mix TAB and SPACE indentation */ 3HEADER; 4FILE_DESCRIPTION(('Wr004 - mixed tab/space indentation on continuation lines'),'2;1'); 5FILE_NAME('Wr004.stp','2026-06-20T00:00:00',('auto-generated'),(''), 6 'auto-generated','',''); 7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 8ENDSEC; 9DATA; 10/* Defect: continuation lines alternate between TAB and 2-SPACE indentation */ 11#1=CARTESIAN_POINT('origin', 12 (0.,0.,0.)); 13#2=CARTESIAN_POINT('corner', 14 (1.,1.,1.)); 15#3=DIRECTION('z-axis', 16 (0.,0.,1.)); 17#4=DIRECTION('x-axis', 18 (1.,0.,0.)); 19#5=VECTOR('v',#3, 20 1.); 21#6=GEOMETRIC_CURVE_SET('mixed-indent',()); 22ENDSEC; 23END-ISO-10303-21;