Skip to content

Commit

Permalink
fix a breakline bug
Browse files Browse the repository at this point in the history
  • Loading branch information
finalion committed May 5, 2017
1 parent d4e1502 commit 2702ddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wquery/service/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ def fld_whole(self):
return
try:
result = self.builder[self.word]
result = result.strip()
.replace('\r\n', '<br />')
.replace('\r', '<br />')
result = result.strip()\
.replace('\r\n', '<br />')\
.replace('\r', '<br />')\
.replace('\n', '<br />')
return QueryResult(result=result)
except KeyError:
Expand Down

0 comments on commit 2702ddc

Please sign in to comment.