mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-19 07:37:03 +00:00
more detail in wild survex report
This commit is contained in:
@@ -294,7 +294,7 @@ class LoadingSurvex:
|
||||
rx_include = re.compile(r"(?i)^\s*(\*include[\s].*)$")
|
||||
rx_include2 = re.compile("(?i)include$")
|
||||
rx_commref = re.compile(r"(?i)^\s*ref(?:erence)?[\s.:]*(\d+)\s*#\s*(X)?\s*(\d+)")
|
||||
rx_ref_text = re.compile(r'(?i)^\s*\"[^"]*\"\s*$')
|
||||
rx_ref_text = re.compile(r'(?i)^\s*\"([^"]*)\"\s*$')
|
||||
rx_star = re.compile(r"(?i)\s*\*[\s,]*(\w+)\s*(.*?)\s*(?:;.*)?$")
|
||||
rx_starref = re.compile(r"(?i)^\s*\*ref[\s.:]*((?:19[6789]\d)|(?:20[0123]\d))\s*#?\s*(X)?\s*(.*?\d+.*?)$")
|
||||
rx_argsref = re.compile(r"(?i)^[\s.:]*((?:19[6789]\d)|(?:20[012345]\d))\s*#?\s*(X)?\s*(.*?\d+.*?)$")
|
||||
@@ -1171,8 +1171,13 @@ class LoadingSurvex:
|
||||
refline = self.rx_ref_text.match(args)
|
||||
if refline:
|
||||
# a textual reference such as "1996-1999 Not-KH survey book pp 92-95"
|
||||
# this produces a lot of printout, so don't print it
|
||||
# print(f"{self.insp} *REF quoted text so ignored:{args} in {survexblock.survexfile.path}")
|
||||
# this produces a lot of printout, so don't print it
|
||||
reftxt = refline.groups()[0] # only one item in this tuple
|
||||
if reftxt:
|
||||
print(f"{self.insp} *REF quoted text: '{reftxt}' in {survexblock.survexfile.path}")
|
||||
# only store it if not an empty string
|
||||
survexblock.ref_text = reftxt
|
||||
survexblock.save()
|
||||
return
|
||||
|
||||
if len(args) < 4:
|
||||
|
||||
Reference in New Issue
Block a user