cmDocumentationFormatter: `PrintPreformatted` accept string

Also, make it `const` method cuz it's not modify the state.
2 files changed