Commit 8fca152
authored
Merge PR #130: Fix bug - textArea ranges extraction
Fix ranges extraction when serializing Text widget tag ranges in rich_text_editor.py.
Previously, iterating with enumerate(ranges[::2]) caused pairing of (startN, startN) for subsequent ranges. This change iterates over the original ranges in steps of 2 to correctly pair (start, end).1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments