fix indentation for lines with close brackets or square brackets