We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142275f commit a711840Copy full SHA for a711840
lib/src/models/documents/nodes/line.dart
@@ -362,7 +362,7 @@ base class Line extends QuillContainer<Leaf?> {
362
void handle(Style style) {
363
for (final attr in result.values) {
364
if (!style.containsKey(attr.key) ||
365
- (style.attributes[attr.key] != attr.value)) {
+ (style.attributes[attr.key]?.value != attr.value)) {
366
excluded.add(attr);
367
}
368
@@ -390,6 +390,7 @@ base class Line extends QuillContainer<Leaf?> {
390
final remaining = len - local;
391
if (remaining > 0 && nextLine != null) {
392
final rest = nextLine!.collectStyle(0, remaining);
393
+ result = result.mergeAll(rest);
394
handle(rest);
395
396
0 commit comments