Skip to content

Escape contents of source document snippet for JsonLocation._appendSourceDesc() #658

@cowtowncoder

Description

@cowtowncoder

Currently a leading snippet of contents parsed is included in JsonLocation description; all characters are just included as-is. But it would make sense to ensure that non-printable characters (control characters in particular) are escaped and not just printed out, as these descriptions are often simply printed out as-is into application logs and control characters (like linefeeds, tabs) may be problematic in such cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions