remove trailing whitespace from engines guide
fix the example code in the engines guide. closes #8583.
Merge pull request #9250 from senny/8583_fix_engines_documentation_example_code

fix example code in engines guide