diff --git a/ansi2html/converter.py b/ansi2html/converter.py index 3c5d7fc..72811a8 100644 --- a/ansi2html/converter.py +++ b/ansi2html/converter.py @@ -454,6 +454,13 @@ def _handle_ansi_code( yield CursorMoveUp() continue + while True: + param_len = len(params) + params = params.replace("::", ":") + params = params.replace(";;", ";") + if len(params) == param_len: + break + try: params = [int(x) for x in re.split("[;:]", params)] except ValueError: