Skip to content

Commit

Permalink
Deploying to gh-pages from @ 86171af 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mlissner committed Jul 12, 2022
1 parent d334c58 commit 294a9cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions annotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1 class="title">Module <code>eyecite.annotate</code></h1>
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

Expand Down Expand Up @@ -74,7 +74,7 @@ <h1 class="title">Module <code>eyecite.annotate</code></h1>
inserting annotations that result in invalid HTML.
unbalanced_tags=&#34;wrap&#34; 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
Expand Down Expand Up @@ -215,14 +215,14 @@ <h1 class="title">Module <code>eyecite.annotate</code></h1>
two characters, delete three characters.
&#34;&#34;&#34;
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=&#34;No&#34;,
)
except AttributeError as e:
raise AttributeError(
&#34;This may be caused by having the diff_match_patch package &#34;
&#34;installed, which is incompatible with &#34;
&#34;diff_match_patch_python.&#34;
&#34;fast_diff_match_patch_python.&#34;
) from e

@staticmethod
Expand Down Expand Up @@ -293,7 +293,7 @@ <h2 id="args">Args</h2>
unbalanced_tags="wrap" will ensure valid HTML by wrapping
annotations around any unbalanced tags.</dd>
<dt><strong><code>use_dmp</code></strong></dt>
<dd>If <code>True</code> (default), use the fast diff_match_patch_python
<dd>If <code>True</code> (default), use the fast_diff_match_patch_python
library for diffing. If <code>False</code>, use the slower built-in difflib,
which may be useful for debugging.</dd>
<dt><strong><code>annotator</code></strong></dt>
Expand Down Expand Up @@ -348,7 +348,7 @@ <h2 id="returns">Returns</h2>
inserting annotations that result in invalid HTML.
unbalanced_tags=&#34;wrap&#34; 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
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h2 id="args">Args</h2>
unbalanced_tags="wrap" will ensure valid HTML by wrapping
annotations around any unbalanced tags.</dd>
<dt><strong><code>use_dmp</code></strong></dt>
<dd>If <code>True</code> (default), use the fast diff_match_patch_python
<dd>If <code>True</code> (default), use the fast_diff_match_patch_python
library for diffing. If <code>False</code>, use the slower built-in difflib,
which may be useful for debugging.</dd>
<dt><strong><code>annotator</code></strong></dt>
Expand Down Expand Up @@ -175,7 +175,7 @@ <h2 id="returns">Returns</h2>
inserting annotations that result in invalid HTML.
unbalanced_tags=&#34;wrap&#34; 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
Expand Down

0 comments on commit 294a9cb

Please sign in to comment.