Automatically remove indentation if ending curly brace detected