removed trailing whitespace and fixed indentation in history widget

using the automatic removal of trailing whitespace with Sublime Text Editor.