Skip to content

Pretty-printer: escape unprintable characters #2595

Open
@kukimik

Description

Can we modify the pretty-printer (or at least the dhall format and dhall freeze commands) to unicode-escape unprintable characters? Perhaps this could be switched by an option?

I have some text containing unprintable characters that I want to be visible in the source code, so I use the escaping (e.g. "\u007f"). Unfortunately dhall format replaces it with the unprintable character verbatim.

It would be great if the original form (escaped/unescaped) could be preserved, but that is perhaps too much to ask for.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions