|
@@ -475,7 +475,7 @@ def diff(seqm):
|
|
|
end = end.replace('\r\n', '\n')
|
|
end = end.replace('\r\n', '\n')
|
|
|
sub = ''
|
|
sub = ''
|
|
|
|
|
|
|
|
- if not re.search('\n', end):
|
|
|
|
|
|
|
+ if not re.search('\n$', end):
|
|
|
end += '\n'
|
|
end += '\n'
|
|
|
|
|
|
|
|
num = 0
|
|
num = 0
|
|
@@ -495,6 +495,7 @@ def diff(seqm):
|
|
|
else:
|
|
else:
|
|
|
if re.search('<\/span>', data):
|
|
if re.search('<\/span>', data):
|
|
|
num -= 1
|
|
num -= 1
|
|
|
|
|
+ print(num)
|
|
|
sub += str(left) + ' : ' + re.sub('(?P<in>(?:(?!\n).)*)\n', '\g<in>', data, 1) + '<br>'
|
|
sub += str(left) + ' : ' + re.sub('(?P<in>(?:(?!\n).)*)\n', '\g<in>', data, 1) + '<br>'
|
|
|
else:
|
|
else:
|
|
|
if num > 0:
|
|
if num > 0:
|