jhy/jsoup — pull request #169 by darkcircle (2012-01-26 14:16:00+00:00)
Title: This is my solution for my suggestion issue #168

I changed return value code from

return titleEl != null ? titleEl.text().trim() : "";

to

return titleEl != null ? titleEl.text().trim().replaceAll("\\n", "").replaceAll("(\\s){2,}", " ") : "";

for removing unnecessary spaces and newline chars in the document title if exists.