Trimmed whitespace on extracted synopsis lines

Fixes #770 on Windows
Refactored end of line trim of synopsis extraction into regex.
Merge pull request #771 from Rarst/synopsis-extract-fix

Trimmed whitespace on extracted synopsis lines