From c9139678da2af1fbcad2a472354317796785ab13 Mon Sep 17 00:00:00 2001 From: singerdmx Date: Mon, 21 Dec 2020 12:25:51 -0800 Subject: [PATCH] Fix PreserveBlockStyleOnInsertRule --- lib/models/rules/insert.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/rules/insert.dart b/lib/models/rules/insert.dart index b62eb26d..bf1f65cb 100644 --- a/lib/models/rules/insert.dart +++ b/lib/models/rules/insert.dart @@ -75,7 +75,7 @@ class PreserveBlockStyleOnInsertRule extends InsertRule { Style.fromJson(nextNewLine.item1?.attributes ?? {}); Attribute attribute = lineStyle.getBlockExceptHeader(); - if (attribute != null) { + if (attribute == null) { return null; }