Fixed spacing bugs involving code block attributes.

Closes #763.