From 11f1f1db5ee04aa5acfa669e86e5acb67b5c2ff9 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Wed, 6 Nov 2019 11:17:07 +0200 Subject: [PATCH] import_outline: ignore ^ --- srcxray.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcxray.py b/srcxray.py index cc946d2..a2a32d2 100755 --- a/srcxray.py +++ b/srcxray.py @@ -647,7 +647,9 @@ def import_outline(a=None): id = str(m.group(2)) else: raise Exception(line) - + if not id: + continue + id = re.sub(' \^$', '', id) if n <= nprev: stack = stack[:n - nprev - 1] # print(n, id, stack)