aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_map/gen_map.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_map/gen_map.py')
-rwxr-xr-xscripts/gen_map/gen_map.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/gen_map/gen_map.py b/scripts/gen_map/gen_map.py
index 90b848af..8765336b 100755
--- a/scripts/gen_map/gen_map.py
+++ b/scripts/gen_map/gen_map.py
@@ -153,6 +153,10 @@ def parse_section_html(section, summary_class: str) -> t.Tuple[str, str, int]:
'class': 'head-absatz-num'
}).children)[2].strip()
+ if num.startswith('Lernbereich'):
+ # strip "Lernbreich" and trailing ':'
+ num = num[len('Lernbereich'):-1]
+
summary = section.find(**{'class': summary_class}).string.strip()
summary = summary.replace('\xa0', ' ')