Skip to content
Snippets Groups Projects
Commit 14aff9f2 authored by fmk17's avatar fmk17
Browse files

Fix some whitespace issues

parent b30fb4a8
Branches main
No related tags found
No related merge requests found
...@@ -110,10 +110,10 @@ def get_location_days( ...@@ -110,10 +110,10 @@ def get_location_days(
if indicator is not None: if indicator is not None:
item_indicators.add(indicator) item_indicators.add(indicator)
elif child.text.strip() != "": elif child.text.strip() != "":
if child.text.startswith("\n"): if child.text.strip(' ').startswith("\n"):
items.append( items.append(
MenuItem( MenuItem(
name=item_name, name=re.sub(' +', ' ', item_name),
indicators=frozenset(item_indicators), indicators=frozenset(item_indicators),
) )
) )
...@@ -127,7 +127,8 @@ def get_location_days( ...@@ -127,7 +127,8 @@ def get_location_days(
if item_name is not None: if item_name is not None:
items.append( items.append(
MenuItem( MenuItem(
name=item_name, indicators=frozenset(item_indicators) name=re.sub(' +', ' ', item_name),
indicators=frozenset(item_indicators)
) )
) )
menus.append( menus.append(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment