

def extract_xml_list(elements):
    "\nSome people don't have seperate tags for their keywords and seperate them with\na newline. This will extract out all of the keywords correctly.\n"
    if elements:
        keywords = [re.split('[\\n\\r]+', f.text) for f in f if f.text]
        flattened = [item.strip() for sublist in keywords for item in sublist]
        remove_blank = [_f for _f in flattened if _f]
        return remove_blank
    else:
        return []

dataset/ETHPy150Open geopython/OWSLib/owslib/util.py extract_xml_list/VarMisuse@33/98 `elements`->`f`