From f25f663bcb324c82badb18532fdf162e601d0c13 Mon Sep 17 00:00:00 2001 From: AtlasAutocode Date: Sat, 6 Jul 2024 10:32:32 -0600 Subject: [PATCH] Fix PreserveInlineStylesRule --- lib/src/models/rules/insert.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/models/rules/insert.dart b/lib/src/models/rules/insert.dart index 685c285b..7ea7050d 100644 --- a/lib/src/models/rules/insert.dart +++ b/lib/src/models/rules/insert.dart @@ -571,7 +571,8 @@ class PreserveInlineStylesRule extends InsertRule { final currData = currLine.data as String?; if (currData != null && (currData.isEmpty || currData[0] == '\n')) { if (prevData.trimRight().isEmpty) { - final back = DeltaIterator(documentDelta).skip(index - prevData.length); + final back = + DeltaIterator(documentDelta).skip(index - prevData.length); if (back != null && back.data is String) { prev = back; }