improve robustness of `maxLineLength` (#913)