Skip to content

[Backport releases/v4.34.0] fix: restore trailing whitespace of nested tactic blocks in the info tree - #15106

Merged
Kha merged 1 commit into
releases/v4.34.0from
backport-15093-to-releases/v4.34.0
Sep 14, 2026
Merged

Kha merged 1 commit into
releases/v4.34.0from
backport-15093-to-releases/v4.34.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport 843c831 from #15093.

…tree (#15093)

This PR fixes the goal view showing the state after the enclosing tactic
instead of the nested block's goal on the line after the last tactic of
a nested `have ... := by` block or `·` bullet, e.g. after an empty `·`
where the next tactic is about to be typed (#15053).

Tactic steps are elaborated without the trailing whitespace of their
last token for incremental reuse (#11958), which is re-added to the
resulting info trees afterwards. `InfoTree.addTrailing?` passed each
node's own trailing whitespace to its children instead of the trailing
being added, which cut off propagation at the `by` token node that `have
... := by tacs` expands to via `with_annotate_state`, so the last nested
tactic never regained its whitespace. Term-level blocks ending a tactic
step additionally hide behind an unsubstituted info hole at that point,
so `evalSepTactics` now substitutes holes before re-adding.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 843c831)
@github-actions
github-actions Bot requested a review from kim-em as a code owner September 10, 2026 14:17
@Kha
Kha merged commit efb0e6b into releases/v4.34.0 Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant