mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 21:37:07 +00:00
improving cave identification in logbooks
This commit is contained in:
@@ -453,9 +453,13 @@ def parser_html(year, expedition, txt, seq=""):
|
||||
tid = reset_trip_id(ldate)
|
||||
triptitles = triptitle.split(" - ")
|
||||
if len(triptitles) >= 2:
|
||||
place = triptitles[0]
|
||||
place = triptitles[0].split()[0]
|
||||
else:
|
||||
place = "Unknown"
|
||||
p = triptitle.split()
|
||||
if len(p) >= 2:
|
||||
place = p[0]
|
||||
else:
|
||||
place = triptitle
|
||||
# tripcontent = re.sub(r"</p>", "", triptext)
|
||||
# tripcontent = re.sub(r"<p>", "<br /><br />", tripcontent).strip()
|
||||
tripcontent = triptext.strip()
|
||||
|
||||
Reference in New Issue
Block a user