diff --git a/changedetectionio/blueprint/ui/views.py b/changedetectionio/blueprint/ui/views.py index 20c2761d..39964748 100644 --- a/changedetectionio/blueprint/ui/views.py +++ b/changedetectionio/blueprint/ui/views.py @@ -240,6 +240,9 @@ def construct_blueprint(datastore: ChangeDetectionStore, update_q, queuedWatchMe content = diff.render_diff(previous_version_file_contents=from_version_file_contents, newest_version_file_contents=to_version_file_contents, +# include_removed=diff_prefs.get('removed'), +# include_added=diff_prefs.get('added'), +# include_replaced=diff_prefs.get('replaced'), html_colour=True, ignore_junk=diff_prefs.get('ignoreWhitespace'), include_equal=not diff_prefs.get('changesOnly'), diff --git a/changedetectionio/diff.py b/changedetectionio/diff/__init__.py similarity index 90% rename from changedetectionio/diff.py rename to changedetectionio/diff/__init__.py index 42638bb4..bc9eb112 100644 --- a/changedetectionio/diff.py +++ b/changedetectionio/diff/__init__.py @@ -1,8 +1,17 @@ +""" +Diff rendering module for change detection. + +This module provides functions for rendering differences between text content, +with support for various output formats and tokenization strategies. +""" + import difflib from typing import List, Iterator, Union import diff_match_patch as dmp_module import re +from .tokenizers import TOKENIZERS, tokenize_words_and_html + # Remember! gmail, outlook etc dont support