Support sub-doc updates

Adding a newline before the new if statement would improve readability.