Skip to content

Commit

Permalink
Remove extra newline in cli wrapper output
Browse files Browse the repository at this point in the history
  • Loading branch information
polm committed Jun 29, 2020
1 parent a148201 commit 4f3e928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/mecab-py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def parse(args=''):
tagger = Tagger(args)

for line in fileinput.input([]):
print(tagger.parse(line.strip()))
# strip the newline on output
print(tagger.parse(line.strip())[:-1])


if __name__ == '__main__':
Expand Down

0 comments on commit 4f3e928

Please sign in to comment.