Do not add linebreaks twice on search.

Submitted patch to wrong branch. Per Issue #1083.