-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
enhancementImprove the expectedImprove the expected
Description
This is partially my failure in #103. As we concentrated in that PR on binary data (which is my other use case), but not on default text output. So instead of printing the text nicely for more common case we print it with escaped \n, so if the output if not one-liner (i.e. some log) it's hard to read.
I see one of two possible approaches:
- Format as binary, but line-by line. So weird characters are visible as escapes, but multi-line text output is readable
- Detect whether the output is binary or not, (by trying from_utf8 first?). And then print text normally.
What do you think?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementImprove the expectedImprove the expected