make onleliner when there is only one line between curly brackets