Repository navigation
A figure's rows carry its picture alone - #50
Conversation
Art that is the picture's own placeholder, already marked as the picture inline (how SharpMUSH lays out a lone Markdown image), carried both marks under the figure's. MXP, Pueblo and BBCode then wrote the picture twice or lost its cells, and the text beside it moved. The figure now strips pictures from its rows before marking them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ztDNVgzxM8V5WKWBRs2EW
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Your free on-demand review promotion remains active until October 9, 2026 at 6:00 PM UTC. WalkthroughFigure rendering removes inline image markup from rows before applying the figure’s picture markup. Parameterized tests cover MXP, Pueblo, and BBCode, including picture count and beside-text positioning. ChangesFigure placeholder image handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to Figures whose art is already marked as an image now render a single picture, and adjacent text keeps its position. No actionable merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
Before: a
Figurewhose art is the picture's own placeholder, already wrapped in the sameImageMarkupinline, carried two picture marks on each row. This is how SharpMUSH lays out a lone Markdown image (RenderFigurewraps[image: alt]in the image and passes that as the art). MXP, Pueblo and BBCode then wrote the picture twice or lost its cells, so the words floated beside it moved. In Pueblo, for example, 32 blank cells came before the text instead of 16.After: one picture element on the first row, and the text beside it starts in the same column as in the plain text.
How:
Figure.MarkedremovesImageMarkuplayers from each row before wrapping it in the figure's mark, so a picture's rows hold only that picture. The newArtMarkedAsThePictureIsStillOnePicturetest covers MXP, Pueblo and BBCode, and fails on all three without the fix.Tests: 1098/1098;
dotnet format whitespace --verify-no-changesclean.🤖 Generated with Claude Code
https://claude.ai/code/session_018ztDNVgzxM8V5WKWBRs2EW
Generated by Claude Code
Summary by CodeRabbit