mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 07:42:41 +00:00
Fix clipping when generating a wall
This commit is contained in:
@@ -155,7 +155,7 @@ def _split_list(value_str: str) -> list[str]:
|
|||||||
try:
|
try:
|
||||||
parsed = json.loads(value_str)
|
parsed = json.loads(value_str)
|
||||||
if isinstance(parsed, list):
|
if isinstance(parsed, list):
|
||||||
return [str(item) for item in parsed]
|
return [json.dumps(item) if isinstance(item, (dict, list)) else str(item) for item in parsed]
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
pass
|
pass
|
||||||
return [item.strip() for item in value_str.split(",") if item.strip()]
|
return [item.strip() for item in value_str.split(",") if item.strip()]
|
||||||
|
|||||||
Reference in New Issue
Block a user