diff --git a/lib/src/models/documents/nodes/line.dart b/lib/src/models/documents/nodes/line.dart index cd951173..f1f5c1f5 100644 --- a/lib/src/models/documents/nodes/line.dart +++ b/lib/src/models/documents/nodes/line.dart @@ -333,6 +333,8 @@ class Line extends Container { /// every line within this range (partially included lines are counted). /// - inline attribute X is included in the result only if it exists /// for every character within this range (line-break characters excluded). + /// + /// In essence, it is INTERSECTION of each individual segment's styles Style collectStyle(int offset, int len) { final local = math.min(length - offset, len); var result = Style(); @@ -381,6 +383,7 @@ class Line extends Container { } /// Returns all styles for any character within the specified text range. + /// In essence, it is UNION of each individual segment's styles List