diff --git a/Backend/Portals.py b/Backend/Portals.py index 4882a6a..9872912 100644 --- a/Backend/Portals.py +++ b/Backend/Portals.py @@ -41,7 +41,7 @@ def _FindLocalDefinitions(Content: str) -> dict[str, str]: Captured = ( Line[: Match.start() - LineStart] + Line[Match.end() - LineStart :] ).strip() - LineDefinitions[Name] = Captured + LineDefinitions[Name] = _ResolveLocalPortals(Captured) elif Match.group("BlockName"): Name = Match.group("BlockName") BlockOccurrences.setdefault(Name, []).append(Match) @@ -51,9 +51,10 @@ def _FindLocalDefinitions(Content: str) -> dict[str, str]: Open = Occurrences[0] if len(Occurrences) >= 2: Close = Occurrences[1] - BlockDefinitions[Name] = Content[Open.end() : Close.start()].strip("\n") + Captured = Content[Open.end() : Close.start()].strip("\n") else: - BlockDefinitions[Name] = Content[Open.end() :].lstrip("\n") + Captured = Content[Open.end() :].lstrip("\n") + BlockDefinitions[Name] = _ResolveLocalPortals(Captured) return {**LineDefinitions, **BlockDefinitions}