[GH-ISSUE #8814] Professor Mari's edit diff alternates old and new word by word, which is hard to read #8507

Closed
opened 2026-11-07 16:43:24 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kolacheee on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8814

Originally assigned to: @kolacheee on GitHub.

When Professor Mari edits a prose field (a character's description, say), the change receipt and the in-place field review show the edit as a word diff. When a phrase is rewritten, the old and new words alternate one by one, each struck word glued to its replacement:

A brilliant researcher and respectedwhose authorityoutward inprofessionalism herhas ~~field,~~become a …

That is hard to read: you can't see the old phrase or the new phrase as a whole.

Expected: a run of consecutive changed words shows the whole old run struck out, then the whole new run, with short kept words between two edits ("a", "of the") folded into the run:

A brilliant researcher and respected authority in her field, a professional whose outward professionalism has become a shield …

Applies to the change receipt, Mari's in-place field review, the Easy Viewer, and the paired lines of the unified diff.

Originally created by @kolacheee on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8814 Originally assigned to: @kolacheee on GitHub. When Professor Mari edits a prose field (a character's description, say), the change receipt and the in-place field review show the edit as a word diff. When a phrase is rewritten, the old and new words alternate one by one, each struck word glued to its replacement: > A brilliant researcher ~~and respected~~whose ~~authority~~outward ~~in~~professionalism ~~her~~has ~~field,~~become a … That is hard to read: you can't see the old phrase or the new phrase as a whole. **Expected:** a run of consecutive changed words shows the whole old run struck out, then the whole new run, with short kept words between two edits ("a", "of the") folded into the run: > A brilliant researcher ~~and respected authority in her field, a professional~~ <ins>whose outward professionalism has become a</ins> shield … Applies to the change receipt, Mari's in-place field review, the Easy Viewer, and the paired lines of the unified diff.
bsakaguchi 2026-11-07 16:43:24 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Nov 4, 2026):

Taking this one (SpicyMarinara, via Claude Code). Branch fix/mari-diff-phrase-runs: consecutive changed words in a word diff become one struck-out old run followed by one new run, with short kept words between two edits folded in. Covers the change receipt, the in-place field review, the Easy Viewer and the paired lines of the unified diff, since they all share diffWords.

<!-- gh-comment-id:6627034373 --> @SpicyMarinara commented on GitHub (Nov 4, 2026): Taking this one (SpicyMarinara, via Claude Code). Branch `fix/mari-diff-phrase-runs`: consecutive changed words in a word diff become one struck-out old run followed by one new run, with short kept words between two edits folded in. Covers the change receipt, the in-place field review, the Easy Viewer and the paired lines of the unified diff, since they all share `diffWords`.
Author
Owner

@kolacheee commented on GitHub (Nov 4, 2026):

@SpicyMarinara Don't please I already have a PR up for this.

<!-- gh-comment-id:6627191295 --> @kolacheee commented on GitHub (Nov 4, 2026): @SpicyMarinara Don't please I already have a PR up for this.
Author
Owner

@SpicyMarinara commented on GitHub (Nov 4, 2026):

Sorry @kolacheee, I missed #8815 when I picked this up. I've stopped my branch; nothing was pushed, so #8815 is the only fix for this issue.

<!-- gh-comment-id:6627912560 --> @SpicyMarinara commented on GitHub (Nov 4, 2026): Sorry @kolacheee, I missed #8815 when I picked this up. I've stopped my branch; nothing was pushed, so #8815 is the only fix for this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8507
No description provided.