Skip to content

Align details Tag Boundaries Across pr_review.py's Readers #2384

Closed

Description

@ptr727

Found while working #2187 in #2383. Neither is a regression from that change, and both predate it.

  • DETAILS_OPEN and DETAILS_TAG now disagree on a tag boundary. DETAILS_OPEN ends the overview preamble at ^ {0,3}<details(?=[\s>]). It rejects <details/>, which HTML opens as a block and DETAILS_TAG now reads as an opener, and it accepts <details\v>, which HTML reads as another tag name and DETAILS_TAG now rejects. A round whose first section opens with <details/> therefore does not end the preamble there, so a section's own total can be read as the round's. Its comment ("Given a tag boundary as DETAILS_TAG already has") still holds for <detailsfoo>, but the two boundaries no longer match.
  • Some HTML closes are still unread by DETAILS_TAG. An attributed or slashed close indented one to three spaces ( </details x>), one behind a blockquote marker, and </details with its > on the next line are each handed to HTML by a CommonMark renderer. Pair Nonstandard details Markup Correctly When Blanking the Overview Narrative #2383 reads an attributed close only at column zero on purpose, since both callers turn a leading code span into spaces before the pattern runs, so reading an indented one would pair a mid-line literal. A fix needs the callers to keep that distinction, for example by masking a code span with a character other than a space.

Done looks like: each either handled with a test built from constructed text, or declined with observed-format evidence that rules it out.

Activity

  1. added
    bug
    script
    on Oct 5, 2026
  2. added a commit that references this issue on Oct 5, 2026
    62f0b33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions