bug 850840 moved endif block to include extra whitespace