work out code block indentation