Trim leading and trailing whitespace from doc strings (fixes #23)

A bug in auto-complete (or popup) causes newlines to be inserted if
the help popup is triggered with contents of the form "\n".