Fix mixture of tabs/spaces. Add curly brackets around ifs
Fix mixture of tabs/spaces. Add curly brackets around ifs

Patternslib/Patterns-archive,Patternslib/Patterns-archive,Patternslib/Patterns-archive