Test if code samples require newline