use white-space value to check if 'pre' mode