Fixes a couple of formatting issues that should be included when the doc-generation code is moved out of a test.