mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
77cef014cf
- Change from MODIFIED to ADDED Requirements for cross-platform line ending parsing - Create focused requirement for parser behavior rather than validation messages - Maintain logical coherence between requirement and scenario
10 lines
516 B
Markdown
10 lines
516 B
Markdown
## ADDED Requirements
|
|
### Requirement: Parser SHALL handle cross-platform line endings
|
|
The markdown parser SHALL correctly identify sections regardless of line ending format (LF, CRLF, CR).
|
|
|
|
#### Scenario: Required sections parsed with CRLF line endings
|
|
- **GIVEN** a change proposal markdown saved with CRLF line endings
|
|
- **AND** the document contains `## Why` and `## What Changes`
|
|
- **WHEN** running `openspec validate <change-id>`
|
|
- **THEN** validation SHALL recognize the sections and NOT raise parsing errors
|