Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arulalant committed Aug 9, 2014
1 parent 34db05a commit bd1dab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion txt2unicode/encode2unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def encode2unicode(text, charmap):
unitxt = ''
for line in text:
for key,val in charmap.iteritems():
if key in text:
if key in line:
line = line.replace(key, val)
# end of if key in text:
unitxt += line
Expand Down
2 changes: 1 addition & 1 deletion txt2unicode/unicode2encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def unicode2encode(text, charmap):
unitxt = ''
for line in text:
for val,key in charmap.iteritems():
if key in text:
if key in line:
line = line.replace(key, val)
# end of if val in text:
unitxt += line
Expand Down

0 comments on commit bd1dab5

Please sign in to comment.