Skip to content

fix(android): removing inline styles#672

Merged
kacperzolkiewski merged 2 commits into
mainfrom
@kacperzolkiewski/fix-applying-bold
Jul 7, 2026
Merged

fix(android): removing inline styles#672
kacperzolkiewski merged 2 commits into
mainfrom
@kacperzolkiewski/fix-applying-bold

Conversation

@kacperzolkiewski

@kacperzolkiewski kacperzolkiewski commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes: #671

This PR fixes removing inline styles within a range while preserving the styles before and after the selected range.

Test Plan

Run reproduction steps from issue: #671
The issue should be resolved.

Screenshots / Videos

Before:

Screen.Recording.2026-07-03.at.10.33.54.mov

After:

Screen.Recording.2026-07-03.at.10.43.23.mov

Compatibility

OS Implemented
iOS
Android
Web

Checklist

  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

@kacperzolkiewski kacperzolkiewski marked this pull request as ready for review July 3, 2026 09:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Android span handling when removing conflicting inline styles, aiming to ensure inline styles are removed only within the requested [start, end] range while preserving the same style applied before and after that range (fix for #671).

Changes:

  • Update Android inline-style removal to split affected spans and re-apply the preserved left/right portions outside the removal range.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@exploIF exploIF self-requested a review July 6, 2026 15:53

@exploIF exploIF left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add regression tests

@exploIF exploIF self-requested a review July 6, 2026 15:53
@exploIF

exploIF commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Some of the tests are failing locally, please verify that

@kacperzolkiewski

Copy link
Copy Markdown
Collaborator Author

Some of the tests are failing locally, please verify that

Some tests failed on the first run, but after rerunning the failed test cases, they all passed.

@kacperzolkiewski kacperzolkiewski merged commit 40d1ee2 into main Jul 7, 2026
7 checks passed
@kacperzolkiewski kacperzolkiewski deleted the @kacperzolkiewski/fix-applying-bold branch July 7, 2026 07:07
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.

[Bug] Android: applying a bold heading strips bold from the previous line

3 participants