[BUG #7142] better newline handling with comment before opening curly