Skip to content

Commit a711840

Browse files
authored
fix: multiline styling stuck/not working properly (singerdmx#1782)
1 parent 142275f commit a711840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/models/documents/nodes/line.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ base class Line extends QuillContainer<Leaf?> {
362362
void handle(Style style) {
363363
for (final attr in result.values) {
364364
if (!style.containsKey(attr.key) ||
365-
(style.attributes[attr.key] != attr.value)) {
365+
(style.attributes[attr.key]?.value != attr.value)) {
366366
excluded.add(attr);
367367
}
368368
}
@@ -390,6 +390,7 @@ base class Line extends QuillContainer<Leaf?> {
390390
final remaining = len - local;
391391
if (remaining > 0 && nextLine != null) {
392392
final rest = nextLine!.collectStyle(0, remaining);
393+
result = result.mergeAll(rest);
393394
handle(rest);
394395
}
395396

0 commit comments

Comments
 (0)