Fix survex parser to allow whitespace between * and command (as survex

does).
This commit is contained in:
Wookey 2014-07-01 02:12:34 +01:00
parent 8cad25ecc4
commit 9d9fad2ae4

View File

@ -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)