Add missing brackets, fix style name restore.

The indentation was correct but the missing brackets were changing the
code and the style was always reset to "none".