mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-30 22:19:57 +02:00
🧹 dinglehopper: Remove obsolete XXX about None ids
This commit is contained in:
parent
4469af62c8
commit
9f05e6ca4c
1 changed files with 0 additions and 3 deletions
|
@ -52,9 +52,6 @@ def test_align():
|
||||||
for left, right in seq_align(grapheme_clusters(test1.text), grapheme_clusters(test2.text)):
|
for left, right in seq_align(grapheme_clusters(test1.text), grapheme_clusters(test2.text)):
|
||||||
left_id = test1.segment_id_for_pos(left_pos) if left is not None else None
|
left_id = test1.segment_id_for_pos(left_pos) if left is not None else None
|
||||||
right_id = test2.segment_id_for_pos(right_pos) if right is not None else None
|
right_id = test2.segment_id_for_pos(right_pos) if right is not None else None
|
||||||
# XXX note that deletions and inserts only produce one id + None, UI must
|
|
||||||
# support this, i.e. display for the one id produced
|
|
||||||
# XXX otherwise, it should always display for BOTH ids
|
|
||||||
el = AlignmentElement(left, right, left_id, right_id)
|
el = AlignmentElement(left, right, left_id, right_id)
|
||||||
alignment.append(el)
|
alignment.append(el)
|
||||||
if left is not None:
|
if left is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue