syntax_fix
This commit is contained in:
parent
0a8c9bbe7d
commit
16a73b9d04
6
VRE.py
6
VRE.py
|
@ -278,6 +278,10 @@ class VRE:
|
||||||
if not paper_df.empty or not dataset_df.empty or not content_df.empty or not post_df.empty:
|
if not paper_df.empty or not dataset_df.empty or not content_df.empty or not post_df.empty:
|
||||||
self.new_income = True
|
self.new_income = True
|
||||||
|
|
||||||
|
def remove_suffix(self, input_string, suffix):
|
||||||
|
if suffix and input_string.endswith(suffix):
|
||||||
|
return input_string[:-len(suffix)]
|
||||||
|
return input_string
|
||||||
|
|
||||||
def remove_useless_dots(self, line):
|
def remove_useless_dots(self, line):
|
||||||
modline = ''
|
modline = ''
|
||||||
|
@ -339,7 +343,7 @@ class VRE:
|
||||||
if j+1 < len(splits):
|
if j+1 < len(splits):
|
||||||
splits[j] = splits[j]+'. '
|
splits[j] = splits[j]+'. '
|
||||||
if j == len(splits)-1:
|
if j == len(splits)-1:
|
||||||
splits[j] = splits[j].removesuffix('-')
|
splits[j] = self.remove_suffix(splits[j], '-') #splits[j].removesuffix('-')
|
||||||
return splits, i+1
|
return splits, i+1
|
||||||
else:
|
else:
|
||||||
return [], i+1
|
return [], i+1
|
||||||
|
|
Loading…
Reference in New Issue