Bug 678436 - Nested \if messes up list items

Blank spaces after an if statement have to be removed as well. Also spaces before the firs round bracket have to be removed.