2
0
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:
2025-01-31 01:51:22 +00:00
parent e080610010
commit 4a0496b3b4
3 changed files with 73 additions and 30 deletions

View File

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