From 9d9fad2ae40137d40ff7cf0a6976846f0a24de20 Mon Sep 17 00:00:00 2001 From: Wookey Date: Tue, 1 Jul 2014 02:12:34 +0100 Subject: [PATCH] Fix survex parser to allow whitespace between * and command (as survex does). --- parsers/survex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/survex.py b/parsers/survex.py index 3f490ea..e5d6e5f 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -116,7 +116,7 @@ def RecursiveLoad(survexblock, survexfile, fin, textlines): continue # detect the star command - mstar = re.match('\s*\*(\w+)\s*(.*?)\s*(?:;.*)?$', sline) + mstar = re.match('\s*\*\s*(\w+)\s*(.*?)\s*(?:;.*)?$', sline) if not mstar: if "from" in stardata: LoadSurvexLineLeg(survexblock, stardata, sline, comment)