[doc] Clarify the scalar_quotes option#171
Conversation
Quoting of strings can be disabled as follows in `.dataprinter` (or similarly in code) ``` scalar_quotes = 0 ``` See also: https://metacpan.org/pod/Data::Printer::Object#quote_keys
|
Setting to |
|
Hi! Thank you for taking the time to file this issue and provide a doc fix. The reason you're seeing ASCII color escapes is because when you say 'scalar_quotes => 0' you are not disabling quotes, you're turning them into "0", and adding a "0" to the start and end of a terminal color escape makes everything go crazy (this is a bug btw, thank you for spotting it!). Right now, the proper way to disable quoting of scalar values is to make it p $val, scalar_quotes => undef;or, in .dataprinter: (note there is a space between single quotes above, because setting it to '' without a space in the rc file is also misbehaving. Another bug you spotted - thank you!) I'm working on a fix right now and will update here as soon as it's done. |
there's a similar bug with |
Quoting of strings can be disabled as follows in
.dataprinter(or similarly in code)See also:
https://metacpan.org/pod/Data::Printer::Object#quote_keys