Fix indent formatting with blank line

Backporting formatting fix from #548.