From 1c64c1a3fe62179ab691b1e95a839bbf0a8dc9f5 Mon Sep 17 00:00:00 2001 From: singerdmx Date: Sat, 19 Dec 2020 14:12:07 -0800 Subject: [PATCH] Add logging for applying rule --- lib/models/documents/document.dart | 1 - lib/models/rules/rule.dart | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/documents/document.dart b/lib/models/documents/document.dart index 5982dca8..75af0be4 100644 --- a/lib/models/documents/document.dart +++ b/lib/models/documents/document.dart @@ -139,7 +139,6 @@ class Document { static Delta _transform(Delta delta) { Delta res = Delta(); for (Operation op in delta.toList()) { - // TODO res.push(op); } return res; diff --git a/lib/models/rules/rule.dart b/lib/models/rules/rule.dart index a16a4a89..ea41ac50 100644 --- a/lib/models/rules/rule.dart +++ b/lib/models/rules/rule.dart @@ -62,6 +62,7 @@ class Rules { delta = rule.apply(delta, index, len: len, data: data, attribute: attribute); if (delta != null) { + print("Rule $rule applied"); return delta..trim(); } }