From 294a9cb34a474711f01c84b97156b24d82479b40 Mon Sep 17 00:00:00 2001 From: mlissner Date: Tue, 12 Jul 2022 21:33:38 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20freelawp?= =?UTF-8?q?roject/eyecite@86171af81cb8c841886f7e694a1f4769d4c8f037=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- annotate.html | 14 +++++++------- index.html | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/annotate.html b/annotate.html index 3e021b2c..69965433 100644 --- a/annotate.html +++ b/annotate.html @@ -31,7 +31,7 @@

Module eyecite.annotate

from functools import partial from typing import Any, Callable, Iterable, Optional, Tuple -import diff_match_patch +import fast_diff_match_patch from eyecite.utils import is_balanced_html, wrap_html_tags @@ -74,7 +74,7 @@

Module eyecite.annotate

inserting annotations that result in invalid HTML. unbalanced_tags="wrap" will ensure valid HTML by wrapping annotations around any unbalanced tags. - use_dmp: If `True` (default), use the fast diff_match_patch_python + use_dmp: If `True` (default), use the fast_diff_match_patch_python library for diffing. If `False`, use the slower built-in difflib, which may be useful for debugging. annotator: If provided, should be a function that takes three @@ -215,14 +215,14 @@

Module eyecite.annotate

two characters, delete three characters. """ try: - return diff_match_patch.diff( - a, b, timelimit=0, checklines=False, cleanup_semantic=False + return fast_diff_match_patch.diff( + a, b, timelimit=0, checklines=False, cleanup="No", ) except AttributeError as e: raise AttributeError( "This may be caused by having the diff_match_patch package " "installed, which is incompatible with " - "diff_match_patch_python." + "fast_diff_match_patch_python." ) from e @staticmethod @@ -293,7 +293,7 @@

Args

unbalanced_tags="wrap" will ensure valid HTML by wrapping annotations around any unbalanced tags.
use_dmp
-
If True (default), use the fast diff_match_patch_python +
If True (default), use the fast_diff_match_patch_python library for diffing. If False, use the slower built-in difflib, which may be useful for debugging.
annotator
@@ -348,7 +348,7 @@

Returns

inserting annotations that result in invalid HTML. unbalanced_tags="wrap" will ensure valid HTML by wrapping annotations around any unbalanced tags. - use_dmp: If `True` (default), use the fast diff_match_patch_python + use_dmp: If `True` (default), use the fast_diff_match_patch_python library for diffing. If `False`, use the slower built-in difflib, which may be useful for debugging. annotator: If provided, should be a function that takes three diff --git a/index.html b/index.html index 29140320..01c3bad0 100644 --- a/index.html +++ b/index.html @@ -120,7 +120,7 @@

Args

unbalanced_tags="wrap" will ensure valid HTML by wrapping annotations around any unbalanced tags.
use_dmp
-
If True (default), use the fast diff_match_patch_python +
If True (default), use the fast_diff_match_patch_python library for diffing. If False, use the slower built-in difflib, which may be useful for debugging.
annotator
@@ -175,7 +175,7 @@

Returns

inserting annotations that result in invalid HTML. unbalanced_tags="wrap" will ensure valid HTML by wrapping annotations around any unbalanced tags. - use_dmp: If `True` (default), use the fast diff_match_patch_python + use_dmp: If `True` (default), use the fast_diff_match_patch_python library for diffing. If `False`, use the slower built-in difflib, which may be useful for debugging. annotator: If provided, should be a function that takes three