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: