Quiz questions showed orphan words ("and", "every") alone on a line, and identifiers were split at their hyphens.
Cause. The question text is hard-wrapped in the YAML (about 105 columns). _wrap then wrapped each of those lines again, on its own, at min(terminal, 100).
Fix
awslings/quiz.py: a single newline is a space, blank lines stay paragraph breaks, no break at hyphens.
awslings/ui.py: width cap 100 → 120.
tests/test_quiz_cli.py: one test for the reflow, the paragraphs and the hyphen case.
Checked. No field of the bank (816 questions and explanations) has a list, a code block or a blank line, so reflowing everything is safe. All 408 questions render without error. Not run here: test_lab_templates_pass_cfn_lint (cfn-lint not installed in my throwaway environment).
Quiz questions showed orphan words ("and", "every") alone on a line, and identifiers were split at their hyphens.
**Cause.** The question text is hard-wrapped in the YAML (about 105 columns). `_wrap` then wrapped each of those lines again, on its own, at `min(terminal, 100)`.
**Fix**
- `awslings/quiz.py`: a single newline is a space, blank lines stay paragraph breaks, no break at hyphens.
- `awslings/ui.py`: width cap 100 → 120.
- `tests/test_quiz_cli.py`: one test for the reflow, the paragraphs and the hyphen case.
**Checked.** No field of the bank (816 questions and explanations) has a list, a code block or a blank line, so reflowing everything is safe. All 408 questions render without error. Not run here: `test_lab_templates_pass_cfn_lint` (cfn-lint not installed in my throwaway environment).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The question text is hard-wrapped in the YAML (about 105 columns) and was then
wrapped again line by line at min(terminal, 100), which left orphan words such
as "and" or "every" alone on a line, and split identifiers at their hyphens.
A single newline is now a space, blank lines stay paragraph breaks, and the
width cap is 120.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nessar
merged commit f68128891e into main2026-10-27 19:15:42 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Quiz questions showed orphan words ("and", "every") alone on a line, and identifiers were split at their hyphens.
Cause. The question text is hard-wrapped in the YAML (about 105 columns).
_wrapthen wrapped each of those lines again, on its own, atmin(terminal, 100).Fix
awslings/quiz.py: a single newline is a space, blank lines stay paragraph breaks, no break at hyphens.awslings/ui.py: width cap 100 → 120.tests/test_quiz_cli.py: one test for the reflow, the paragraphs and the hyphen case.Checked. No field of the bank (816 questions and explanations) has a list, a code block or a blank line, so reflowing everything is safe. All 408 questions render without error. Not run here:
test_lab_templates_pass_cfn_lint(cfn-lint not installed in my throwaway environment).🤖 Generated with Claude Code