From f33b66c8f0c3e65eb061a69da0461b521945b202 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 1 Jan 2024 23:20:19 -0500 Subject: [PATCH] Skip over CR, LF, tabs --- py/hexagram/path.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/hexagram/path.py b/py/hexagram/path.py index 83a7fc8..b9d0b3b 100644 --- a/py/hexagram/path.py +++ b/py/hexagram/path.py @@ -68,6 +68,9 @@ class Path(): state = State.NONE for ch in text: + if ch == '\r' or ch == '\n' or ch == '\t': + continue + c = ord(ch) if state is State.NONE: