|
|
|
@ -1473,10 +1473,10 @@ def load_county_names(md_file):
|
|
|
|
county_data = {}
|
|
|
|
county_data = {}
|
|
|
|
in_table = False
|
|
|
|
in_table = False
|
|
|
|
for line in lines:
|
|
|
|
for line in lines:
|
|
|
|
if line.startswith("| County Name"):
|
|
|
|
if line.startswith("| County |"):
|
|
|
|
in_table = True
|
|
|
|
in_table = True
|
|
|
|
continue # Skip the header
|
|
|
|
continue # Skip the header
|
|
|
|
elif not in_table or line.strip() == "":
|
|
|
|
elif not in_table or line.strip() == "" or line.startswith("##"):
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
name, code = [s.strip() for s in line.split("|")[1:-1]]
|
|
|
|
name, code = [s.strip() for s in line.split("|")[1:-1]]
|
|
|
|
|