Fixed layout bug with headings embedded in terminal blocks