Commit 806b73c
committed
review: restore astutil.CountLeadingSpaces in isPIOpenLine for consistency
Round-3 review found that the round-2 efficiency fix (inline
len(raw)-len(trimmed) > 3) created inconsistency with the identical
CommonMark "≤3 leading spaces" gate in sibling functions fenceOpenRun
and fenceClose, both of which call astutil.CountLeadingSpaces. Restore
the named-helper call so all three functions express the same spec rule
the same way; the second TrimLeft on this path is negligible.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gj8AvSb7r12iqa7r3vYYof1 parent 1043d55 commit 806b73c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
1478 | | - | |
1479 | | - | |
| 1478 | + | |
1480 | 1479 | | |
1481 | 1480 | | |
| 1481 | + | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | 1484 | | |
| |||
0 commit comments