mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-07-20 13:58:49 -04:00
micronparser: Fix a parsing bug
This commit is contained in:
parent
a20b4c9bc3
commit
b2f48d5853
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ def parse_line(line, state, url_delegate):
|
||||||
elif first_char == "-":
|
elif first_char == "-":
|
||||||
if len(line) == 2:
|
if len(line) == 2:
|
||||||
divider_char = line[1]
|
divider_char = line[1]
|
||||||
|
# Control characters don't make sense here and otherwise crash nomadnet
|
||||||
|
if ord(divider_char) < 32:
|
||||||
|
divider_char = "\u2500"
|
||||||
else:
|
else:
|
||||||
divider_char = "\u2500"
|
divider_char = "\u2500"
|
||||||
if state["depth"] == 0:
|
if state["depth"] == 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue