doctor: restore newlines between checks

Closes #18060.