only apply whitespace stripping for knitr < 1.5.23