Commit 9b1b4c8
authored
fix: styles merging logic (#281)
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect -->
# Summary
- Fixes:
#279
## Test Plan
- Make one word bold.
- Make another, separate word bold.
- Create a selection starting from the middle of the first bold word to
the middle of the second bold word (the selection will include bold →
regular → bold segments).
- Call toggleBold.
- Notice that styles are properly applied
## Screenshots / Videos
https://github.com/user-attachments/assets/06a4a0f2-be03-467a-a982-f4413a86e1c7
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ❌ |
| Android | ✅ |1 parent 5c634fd commit 9b1b4c8
File tree
1 file changed
+2
-2
lines changed- android/src/main/java/com/swmansion/enriched/styles
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments