From 40418b29fbcd7cff4462c229f82feb9872086d25 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 6 Oct 2025 10:46:47 +0200 Subject: [PATCH] use redlines library for better line-level word differences --- changedetectionio/diff.py | 218 +++++++++---------------- changedetectionio/tests/test_source.py | 5 +- requirements.txt | 2 + 3 files changed, 86 insertions(+), 139 deletions(-) diff --git a/changedetectionio/diff.py b/changedetectionio/diff.py index 1886898d..11be4621 100644 --- a/changedetectionio/diff.py +++ b/changedetectionio/diff.py @@ -1,138 +1,90 @@ import difflib from typing import List, Iterator, Union +from redlines import Redlines +import re # Remember! gmail, outlook etc dont support