fix(bin/leantags): remove '\r' in ilean input

fix #591
This commit is contained in:
Soonho Kong 2015-05-09 11:56:31 -04:00
parent 379af8a04e
commit e6db3ce584

View file

@ -84,6 +84,7 @@ def extract_info_from_ilean(ilean_file, decl_dict, args):
info = []
with codecs.open(ilean_file, "r", "utf-8") as f:
for line in f:
line = line.replace("\r\n", "\n")
array = line[:-1].split("|")
item = {}
item['category'] = array[0]