summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2014-07-01 02:12:34 +0100
committerWookey <wookey@wookware.org>2014-07-01 02:12:34 +0100
commit4a93790c7ea4a76c5a15aab71a15d19daa7cbdab (patch)
tree156553fc805d1ed7eb25d4dd6f1298910bc7fdff
parent5265acd9dcba97ea1ed3a62ecea01dd960ee90fe (diff)
downloadtroggle-4a93790c7ea4a76c5a15aab71a15d19daa7cbdab.tar.gz
troggle-4a93790c7ea4a76c5a15aab71a15d19daa7cbdab.tar.bz2
troggle-4a93790c7ea4a76c5a15aab71a15d19daa7cbdab.zip
Fix survex parser to allow whitespace between * and command (as survex
does).
-rw-r--r--parsers/survex.py2
1 files changed, 1 insertions, 1 deletions
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)