fix `pretty = false` option

Hi!

The option to disable data.pretty, implied by line 311, wasn't ever going to be triggered because of how this line was written. I've changed it to allow any defined value, defaulting to true otherwise.

Thanks!