mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
support tabs in configfiles; closes #400
This commit is contained in:
parent
ad23b253dc
commit
c160428810
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue