Repository navigation
Conversation
… numbering from 0
…leList A .NET 10 file-based app (dotnet run TestScripts/FormattingTests.cs) that is not part of the solution, so the package build and CI are unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request
Fixes #ISSUE1
Fixes #ISSUE2
Changes (
RichEditorNET/RichEditBox.cs)ToggleSuperscript/ToggleSubscript: clear the other flag before setting the new one. RichEdit clears both together, so the previous order undid the change.ToggleList: setListStart = 1when applying a list style, asHtmlFormatteralready does when loading lists.Tests
The PR adds
TestScripts/FormattingTests.cs, a .NET 10 file-based app with 19 checks:Htmloutput;ListStyleapplied and removed, checking the numbering RichEdit displays (read withGetText2(tomIncludeNumbering)).The editor is never shown. The exit code is the number of failed checks.
The script is not part of
RichEditorNET.slnxand isn't compiled by any project, so the package build and CI are unaffected. If you'd rather not have it in the repo, or would prefer it as a test project, I'm happy to change or drop it.dotnet build RichEditorNET.slnx -c Releasesucceeds for bothnet8.0-windowsandnet48.LLM disclosure
This contribution was made with Claude Code (Anthropic's Claude Opus 5.5 model). As the contributing guidelines require, the full prompts from the session are below.
Context: prompts 1–2 were about my own scripts, which run WinForms code from AutoHotkey. The bugs turned up while building the API showcase requested in prompt 3. The fix and test were written in response to prompts 7 and 8.
(sent while prompt 3 was in progress, reporting an error from one of the assistant's test scripts)
🤖 Generated with Claude Code