summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2019-03-31 15:39:53 +0100
committerSam Wenham <sam@wenhams.co.uk>2019-03-31 15:39:53 +0100
commit9cd8734947766637435ee0527725af3215c98e01 (patch)
treedfd69110a1af8ce3442c47f590bb129ee323a3f1 /parsers/survex.py
parentc8551991b20dd5d4a70048ea5ca1cbb96d0c3414 (diff)
downloadtroggle-9cd8734947766637435ee0527725af3215c98e01.tar.gz
troggle-9cd8734947766637435ee0527725af3215c98e01.tar.bz2
troggle-9cd8734947766637435ee0527725af3215c98e01.zip
Support html and wiki logbook entrys
Move nearest_station to nearest_station_name and make nearest_station a foreign key to SurvexStation Lots of tidying
Diffstat (limited to 'parsers/survex.py')
-rw-r--r--parsers/survex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/survex.py b/parsers/survex.py
index 536314f..a999c43 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -92,13 +92,13 @@ def RecursiveLoad(survexblock, survexfile, fin, textlines):
teammembers = [ ]
# uncomment to print out all files during parsing
- print("Reading file:", survexblock.survexfile.path)
+ print("Reading file: " + survexblock.survexfile.path)
while True:
svxline = fin.readline().decode("latin1")
if not svxline:
return
textlines.append(svxline)
-
+
# break the line at the comment
sline, comment = re.match(r"([^;]*?)\s*(?:;\s*(.*))?\n?$", svxline.strip()).groups()