summaryrefslogtreecommitdiffstats
path: root/parsers/caves.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/caves.py')
-rw-r--r--parsers/caves.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/parsers/caves.py b/parsers/caves.py
index b7b6c4c..d2a8306 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -216,11 +216,17 @@ def do_ARGE_cave(slug, caveid, areacode, svxid):
line1 = s.readline()
line2 = s.readline()
line3 = s.readline()
+ rest = s.readlines()
else:
print(f"not correct svxid {svxid} {sv}", file=sys.stderr)
-
+
+ print(f"{caveid} {rest}")
+ passages = "\n"
+ for line in rest:
+ if line.strip().startswith("*begin"):
+ passages = f"{passages}{line}"
cave = Cave(
- underground_description="ARGE cave.<br>3 lines of the survexfile:<br><pre>" + line1 +line2 +line3 +"</pre>",
+ underground_description="ARGE cave.<br>3 lines of the survexfile, then all the *begin lines:<br><pre>" + line1 +line2 +line3 +passages +"</pre>",
unofficial_number="ARGE",
survex_file= f"{svxid}.svx",
url=url,