diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-11-07 23:20:59 +0200 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-11-07 23:20:59 +0200 |
commit | 1ba37665b5ff17c92e2fc7d3587c166ffd79af96 (patch) | |
tree | 470d7a866ab7c8a2a9b221204c99932180ee9a22 /parsers/logbooks.py | |
parent | 3f94955883bae222cb049ef5af0b52c31a3ecac4 (diff) | |
download | troggle-1ba37665b5ff17c92e2fc7d3587c166ffd79af96.tar.gz troggle-1ba37665b5ff17c92e2fc7d3587c166ffd79af96.tar.bz2 troggle-1ba37665b5ff17c92e2fc7d3587c166ffd79af96.zip |
<p> now OK in logbook entries
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 3789b4a..9e92dfc 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -59,7 +59,7 @@ LOGBOOK_PARSER_SETTINGS = { LOGBOOKS_DIR = "years" # subfolder of settings.EXPOWEB ENTRIES = { - "2023": 83, + "2023": 84, "2022": 94, "2019": 55, "2018": 95, @@ -408,8 +408,9 @@ def parser_html(year, expedition, txt, seq=""): place = triptitles[0] else: place = "Unknown" - tripcontent = re.sub(r"</p>", "", triptext) - tripcontent = re.sub(r"<p>", "<br /><br />", tripcontent).strip() + # tripcontent = re.sub(r"</p>", "", triptext) + # tripcontent = re.sub(r"<p>", "<br /><br />", tripcontent).strip() + tripcontent = triptext.strip() triptitle = triptitle.strip() # triptitle must be unique for a given date. [Why?!] We fix this here. |