2
0
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:
Philip Sargent 2020-02-20 15:26:33 +00:00
parent 44caf35fd8
commit 2fc60f9f74
2 changed files with 3 additions and 3 deletions

View File

@ -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__":

View File

@ -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,