mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 05:27:12 +00:00
begun to do fields, blue
This commit is contained in:
@@ -379,6 +379,9 @@ def getXML(text, itemname, minItems=1, maxItems=None, context=""):
|
||||
|
||||
This always succeeds, but it produces error message on the terminal and in the
|
||||
DataIssues log.
|
||||
|
||||
Yes this is using the python2 style of string expansion and not f-expressions.
|
||||
Sorry. This is very old.
|
||||
"""
|
||||
items = re.findall("<%(itemname)s>(.*?)</%(itemname)s>" % {"itemname": itemname}, text, re.S)
|
||||
if len(items) < minItems:
|
||||
|
||||
Reference in New Issue
Block a user