Do not add linebreaks twice on search.
Merge pull request #1588 from hgtonight/patch-1

Do not add linebreaks twice on search.