summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2020-02-20 15:02:14 +0000
committerWookey <wookey@wookware.org>2020-02-20 15:02:14 +0000
commit3b1fcb7febc56ca047c2f7f1f2f50e92ed38763a (patch)
tree95bffd5bc325344bd9beb2141912fd46ed4ae588
parent2838f540d1a407c63a97f5878d607fa63ab563cf (diff)
parent44caf35fd82991ee440dc0702ad0eace2238f501 (diff)
downloadtroggle-3b1fcb7febc56ca047c2f7f1f2f50e92ed38763a.tar.gz
troggle-3b1fcb7febc56ca047c2f7f1f2f50e92ed38763a.tar.bz2
troggle-3b1fcb7febc56ca047c2f7f1f2f50e92ed38763a.zip
Merge branch 'master' of ssh://expo.survex.com/~/troggle
-rw-r--r--parsers/logbooks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index e5817a6..39e7b43 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -183,8 +183,8 @@ 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*", " ", ltriptext)
- ltriptext = re.sub(r"<p>", "\n\n", ltriptext).strip()
+ ltriptext = re.sub(r"\s*?\n\s*", "</br>", 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,
entry_type="html")