Repository navigation
Keep two equal exits, links or pictures side by side apart (MarkupString 2.29.1) - #131
Conversation
AnsiParser, MxpParser, PuebloParser and ILineParser are replaced by MarkupLineParser, one MarkupString Decoder per session (WithVt, WithMxp, WithPueblo) folded into the existing StyledLine model. The old parser test suites are kept and run against the adapter as the capability inventory; the gaps they found were fixed in MarkupString 2.27.0. Behaviour changes the tests now record: is U+00A0, erase-line erases, Pueblo <img> shows its label, VERSION values are quoted, a picture that would cover text goes inline, and a forged non-web link is text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7WA8C5XG14TAWB6b9V
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7WA8C5XG14TAWB6b9V
A blank line inside an open flagged element has no flagged run, so the line end emitted what had been read and the rest came as a second event. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7WA8C5XG14TAWB6b9V
Adds the CAN and SUB cases to TempSecure_IsSpentByAnyEscapeThatIsNotALineTag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7WA8C5XG14TAWB6b9V
MarkupString 2.29.1 marks each link, picture, variable and flagged element with its own ElementMarkup. The span merge now also requires the same element, so two look-alike links next to each other stay two spans, and two flagged exits raise two flag events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7WA8C5XG14TAWB6b9V
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 49 minutes for your next included review. View limit details
No actionable comments were generated in the recent review. Walkthrough
ChangesMarkup span folding
Estimated code review effort: 2 (Simple) | ~12 minutes Possibly related PRs
Suggested reviewers: Merge Risk:
|
StripColour joined spans that stripping made equal, and also joined spans that were already equal, which the parser keeps apart only when they are two elements. Join only what stripping made equal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7WA8C5XG14TAWB6b9V
Requested by Grave
Problem
Two MXP elements that look the same and sit next to each other were read as one.
<Ex>north</Ex><Ex>south</Ex>withFLAG=RoomExitgave one exit,northsouth, and two<SEND>s to the same command gave one link over both words. The decoder merged them, and so didMarkupLineParser's own span merge.Fix
ElementMarkup.MarkupLineParser.Addnow joins a span to the one before it only when both are in the same element, the innermost one. Text in one element still joins across a style change.Flaggedevents.Tests
MxpDefinitionTests:TwoEqualFlaggedElementsSideBySideAreTwoTwoEqualLinksSideBySideAreTwoSpans(SEND, A, SEND menu)OneLinkStaysOneSpanAcrossALookAlikeBoundaryRun locally against 2.29.1 from nuget.org:
AReadOnlyCacheDirectory_DegradesToMemoryOnly, which fails as root on main too.UrlPolicycheck.Generated by Claude Code
Summary by CodeRabbit