Give doctest section titles a line of whitespace beneath.
Remove trailing whitespace.
Merge pull request #7297 from nebffa/issue_6588

Give doctest section titles a line of whitespace beneath.