support tabs in configfiles; closes #400

This commit is contained in:
ed 2025-08-01 18:00:48 +00:00
parent ad23b253dc
commit c160428810

View file

@ -3458,7 +3458,7 @@ def expand_config_file(
ipath += " -> " + fp ipath += " -> " + fp
ret.append("#\033[36m opening cfg file{}\033[0m".format(ipath)) ret.append("#\033[36m opening cfg file{}\033[0m".format(ipath))
cfg_lines = read_utf8(log, fp, True).split("\n") cfg_lines = read_utf8(log, fp, True).replace("\t", " ").split("\n")
if True: # diff-golf if True: # diff-golf
for oln in [x.rstrip() for x in cfg_lines]: for oln in [x.rstrip() for x in cfg_lines]:
ln = oln.split(" #")[0].strip() ln = oln.split(" #")[0].strip()