From e6db3ce5848c0d3876ad88a875bfdfa6b2dfe5f5 Mon Sep 17 00:00:00 2001 From: Soonho Kong Date: Sat, 9 May 2015 11:56:31 -0400 Subject: [PATCH] fix(bin/leantags): remove '\r' in ilean input fix #591 --- bin/leantags | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/leantags b/bin/leantags index fc43699c2..640ea6566 100755 --- a/bin/leantags +++ b/bin/leantags @@ -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]