Run artifact

workspace/targets/commonmark/evidence/block-13.md

Evidence: Block 13 ยท Service (block-13)

Stories built

Stacked context

Build directory changes

Pre-build acceptance observation

intent: The Soft line breaks and Textual content conformance sections (5 cases) pass in full. return code: 0 stdout: 5 passed, 0 failed, 0 errored, 650 skipped

intent: Two or more trailing spaces before a line ending give one br element between the two lines. return code: 1 stdout: <p>alpha beta</p> stderr: --- drydock: values at failure --- result = CompletedProcess(args=['./commonmark'], returncode=0, stdout='<p>alpha \nbeta</p>\n', stderr='') --- drydock: end values --- Traceback (most recent call last): File "breaks-hard-break-spaces.py", line 8, in <module> assert result.stdout.count("<br />") == 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: A backslash before a line ending gives one br element. return code: 1 stdout: <p>alpha\ beta</p> stderr: --- drydock: values at failure --- result = CompletedProcess(args=['./commonmark'], returncode=0, stdout='<p>alpha\\\nbeta</p>\n', stderr='') --- drydock: end values --- Traceback (most recent call last): File "breaks-hard-break-backslash.py", line 6, in <module> assert result.stdout.count("<br />") == 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

intent: A plain line ending is not a hard break and both lines stay in one paragraph. return code: 0 stdout: <p>alpha beta</p>

intent: Trailing spaces or a trailing backslash at the end of a paragraph do not create a break. return code: 0 stdout: <p>alpha</p>

<p>alpha\</p>

intent: Trailing spaces before a line ending inside a code span do not create a break. return code: 0 stdout: <p><code>code span</code></p>

Post-build programmatic acceptance

intent: The Soft line breaks and Textual content conformance sections (5 cases) pass in full. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: 5 passed, 0 failed, 0 errored, 650 skipped

intent: Two or more trailing spaces before a line ending give one br element between the two lines. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <p>alpha<br /> beta</p>

intent: A backslash before a line ending gives one br element. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <p>alpha<br /> beta</p>

intent: A plain line ending is not a hard break and both lines stay in one paragraph. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <p>alpha beta</p>

intent: Trailing spaces or a trailing backslash at the end of a paragraph do not create a break. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <p>alpha</p>

<p>alpha\</p>

intent: Trailing spaces before a line ending inside a code span do not create a break. target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261014.053711/build/commonmark/.venv/bin/python provisioning: not required return code: 0 stdout: <p><code>code span</code></p>

Build summary

The inline scanner in mdparser/inlines.py has no line-break handling yet, and paragraph text keeps its interior newlines and trailing spaces. I'll add the break branches to the scan loop, then write the tests.Scoped corpus gate passes (5 passed, 0 failed). Next I'll match the existing test style for the acceptance checks and the finer tests.Baseline is green (612 passed, 1 skipped). Now the tests file, with the six declared acceptance checks transcribed as written and finer tests that compare exact returned or emitted HTML.Two failures, both from my tests calling parse_inline directly on input the block layer normally cleans up first. The first is a real gap: the spec says leading spaces on the next line are dropped as part of the break rule, so the inline scanner should not depend on the block layer for that. I'll fix that in the scanner. The second is a test-level mistake: trailing-space stripping belongs to paragraph finalization, so I'll test it through the executable instead. (The file change notice was my own sed rename.)All 37 new tests and the related existing suites pass. Now I'll run the full project suite, the scoped gate with its real exit status, and confirm no staged assets changed.The line-break and text story is built. The scoped conformance gate passes, and the full project test suite is green at 649 passed, 1 skipped.

Hard breaks, soft breaks, and plain text now work in mdparser/inlines.py. A line ending preceded by two or more spaces or a backslash renders <br /> plus a line ending. Any other line ending is a soft break, with spaces before it dropped. Breaks are inert inside code spans and raw HTML tags, and at the end of a block they do nothing.

Choices I made that you may want to redirect:

RESULT: SUCCESS

FILES CHANGED:

SUMMARY: Added hard-break, soft-break and plain-text handling to the inline scanner, with helpers _hard_break, _soft_break, _skip_spaces and _line_ending_after_spaces. Added tests/test_line_breaks.py with the six declared acceptance checks plus finer tests. Scoped corpus gate ^Soft line breaks$|^Textual content$: 5 passed, 0 failed, exit 0. Full pytest: 649 passed, 1 skipped.

<blueprint-decisions> [{"spec":"FEATURE-Line-Breaks-Text.md","severity":"Low","subject":"Break text inside image alt","decision":"A hard or soft break inside an image description contributes a plain line ending to the alt attribute, so ![foo \nbar](/u) gives alt=\"foo\\nbar\". The spec does not say what alt should contain for a break. Is that acceptable?"}] </blueprint-decisions>