mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
Fixing logbooks with parse errors
This commit is contained in:
parent
44caf35fd8
commit
2fc60f9f74
@ -183,8 +183,8 @@ def usage():
|
||||
surveys
|
||||
tunnel - read in the Tunnel files
|
||||
writeCaves
|
||||
- read in - always means read from files and put the information into the database
|
||||
- write out - always means create the auto-generated files from the database
|
||||
read in - always means read from files and put the information into the database
|
||||
write out - always means create the HTML files from the database
|
||||
""")
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -183,7 +183,7 @@ def Parseloghtmltxt(year, expedition, txt):
|
||||
tripcave = "UNKNOWN"
|
||||
#print("\n", tripcave, "--- ppp", trippeople, len(triptext))
|
||||
ltriptext = re.sub(r"</p>", "", triptext)
|
||||
ltriptext = re.sub(r"\s*?\n\s*", "</br>", ltriptext)
|
||||
ltriptext = re.sub(r"\s*?\n\s*", " ", ltriptext)
|
||||
ltriptext = re.sub(r"<p>", "</br></br>", ltriptext).strip()
|
||||
EnterLogIntoDbase(date = ldate, place = tripcave, title = triptitle, text = ltriptext,
|
||||
trippeople=trippeople, expedition=expedition, logtime_underground=0,
|
||||
|
Loading…
Reference in New Issue
Block a user