359
359
def _merge_annotations(self, content, parents):
360
360
"""Merge annotations for content. This is done by comparing
362
363
for parent_id in parents:
363
364
merge_content = self._get_content(parent_id)
364
365
seq = SequenceMatcher(None, merge_content.text(), content.text())
365
366
for i, j, n in seq.get_matching_blocks():
368
373
content._lines[j:j+n] = merge_content._lines[i:i+n]
370
375
def _get_components(self, version_id):