summaryrefslogtreecommitdiffstats
path: root/parsers
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
commit9d9fad2ae40137d40ff7cf0a6976846f0a24de20 (patch)
tree9e4f338661088a6fed9cae6f4c840dba6b00c123 /parsers
parent8cad25ecc448a48dcbddf11ef295c31a4f44d819 (diff)
downloadtroggle-9d9fad2ae40137d40ff7cf0a6976846f0a24de20.tar.gz
troggle-9d9fad2ae40137d40ff7cf0a6976846f0a24de20.tar.bz2
troggle-9d9fad2ae40137d40ff7cf0a6976846f0a24de20.zip
Fix survex parser to allow whitespace between * and command (as survex
does).
Diffstat (limited to 'parsers')
-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)