From b2f48d585305b0ceb03f51b21740e10c370d5eda Mon Sep 17 00:00:00 2001 From: Dionysis Grigoropoulos Date: Wed, 25 Jun 2025 23:48:26 +0300 Subject: [PATCH] micronparser: Fix a parsing bug --- nomadnet/ui/textui/MicronParser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nomadnet/ui/textui/MicronParser.py b/nomadnet/ui/textui/MicronParser.py index 70f9f0f..00507a7 100644 --- a/nomadnet/ui/textui/MicronParser.py +++ b/nomadnet/ui/textui/MicronParser.py @@ -148,6 +148,9 @@ def parse_line(line, state, url_delegate): elif first_char == "-": if len(line) == 2: divider_char = line[1] + # Control characters don't make sense here and otherwise crash nomadnet + if ord(divider_char) < 32: + divider_char = "\u2500" else: divider_char = "\u2500" if state["depth"] == 0: