From 23b4ce7dca07cdedab036c6940d35bb4e7b46f19 Mon Sep 17 00:00:00 2001 From: Henry Hsiao Date: Thu, 11 Jul 2024 07:39:41 +0900 Subject: [PATCH] Update utils.py Added arguments description for use_display_len --- evennia/utils/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evennia/utils/utils.py b/evennia/utils/utils.py index 4ec99ac204..a0344cbd21 100644 --- a/evennia/utils/utils.py +++ b/evennia/utils/utils.py @@ -2307,6 +2307,9 @@ def m_len(target, use_display_len=False): Args: target (str): A string with potential MXP components to search. + use_display_len (bool, optional): If `True`, use display_len + instead of len. Default is `False`, use `True` if target + contain east asian characters. Returns: length (int): The length of `target`, ignoring MXP components.