diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-02-20 15:26:33 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-02-20 15:26:33 +0000 |
commit | 2fc60f9f749bb52ee8495f6702f8535b0b9e2981 (patch) | |
tree | 58fbf24336c4ea734bcd55d51a6f496eee9a7a1d /parsers/logbooks.py | |
parent | 44caf35fd82991ee440dc0702ad0eace2238f501 (diff) | |
download | troggle-2fc60f9f749bb52ee8495f6702f8535b0b9e2981.tar.gz troggle-2fc60f9f749bb52ee8495f6702f8535b0b9e2981.tar.bz2 troggle-2fc60f9f749bb52ee8495f6702f8535b0b9e2981.zip |
Fixing logbooks with parse errors
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 39e7b43..9dfa31b 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -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, |