Fix formatting of lists and config section.

Refs #12279