fix: resolve unreachable duplicate elif 'DO*' branch in result_string() (#6) #39

Merged
Claude merged 2 commits from ai/paper-dynasty-card-creation#6 into main 2026-03-23 03:51:34 +00:00

2 Commits

Author SHA1 Message Date
cbfcba5e26 Merge branch 'main' into ai/paper-dynasty-card-creation#6 2026-03-23 03:50:40 +00:00
Cal Corum
b52c5418db fix: resolve unreachable duplicate elif 'DO*' branch in result_string() (#6)
The second `elif "DO*" in data_string` was dead code — the first always
matched, so `spaces -= 2` for the DO** variant was silently skipped.
Fix: check "DO**" first (spaces -= 2), then "DO*" (spaces -= 1).

Closes #6

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:33:06 -05:00