scaladoc: fixed code block indentation normalization

see SI-8810
`line.takeWhile(_ == ' ').length`: there is a nice `prefixLength` method for this.