@@ -1192,7 +1192,7 @@ def shorten_title(t):
1192
1192
return t
1193
1193
left = m .group (1 )
1194
1194
l = 33 - len (left )
1195
- m = regex .search (f '\s(\w.{{0,{ l } }})$' , t )
1195
+ m = regex .search (rf '\s(\w.{{0,{ l } }})$' , t )
1196
1196
if not m :
1197
1197
t = left + ' […]'
1198
1198
else :
@@ -1709,7 +1709,7 @@ def add_bookmark(attribs, location_id):
1709
1709
if '|' in line :
1710
1710
try :
1711
1711
count += 1
1712
- attribs = regex .split ('\|' , line .rstrip ())
1712
+ attribs = regex .split (r '\|' , line .rstrip ())
1713
1713
for i in [0 ,1 ,2 ,9 ,11 ]:
1714
1714
if attribs [i ] == 'None' :
1715
1715
attribs [i ] = None
@@ -1792,7 +1792,7 @@ def add_publication_location(attribs):
1792
1792
if ('|' in line ) and (line .strip () not in favorite_list ):
1793
1793
try :
1794
1794
count += 1
1795
- attribs = regex .split ('\|' , line .rstrip ())
1795
+ attribs = regex .split (r '\|' , line .rstrip ())
1796
1796
attribs = [None if attr == 'None' else attr for attr in attribs ]
1797
1797
location_id = add_publication_location (attribs )
1798
1798
if available_ids .get ('TagMap' ):
@@ -1885,7 +1885,7 @@ def add_usermark(attribs, location_id):
1885
1885
if regex .match (r'^(\d+\|){6}' , line ):
1886
1886
try :
1887
1887
count += 1
1888
- attribs = regex .split ('\|' , line .rstrip ().replace ('None' , '' ))
1888
+ attribs = regex .split (r '\|' , line .rstrip ().replace ('None' , '' ))
1889
1889
if attribs [6 ]:
1890
1890
location_id = add_scripture_location (attribs )
1891
1891
else :
0 commit comments