diff --git a/genshin/models/starrail/chronicle/events.py b/genshin/models/starrail/chronicle/events.py index 316d3f2c..9da0672d 100644 --- a/genshin/models/starrail/chronicle/events.py +++ b/genshin/models/starrail/chronicle/events.py @@ -199,6 +199,10 @@ def __validate_status(cls, v: str) -> typing.Union[HSREventStatus, str]: except ValueError: return v + @pydantic.field_validator("name", mode="after") + def __format_name(cls, v: str) -> str: + return v.replace("\\n", " ") + @pydantic.field_validator("description", mode="after") def __format_description(cls, v: str) -> str: return v.replace("\\n", "\n")