Skip to content

dhall-to-yaml incorrectly renders string values when value ends in a colon #2192

Open
@timspeetjens

Description

@timspeetjens

Using the following dhall, dhall-to-yaml does not render correctly:

{ a = [ "v:" ], b = "c:" }
$ dhall-to-yaml < t.dhall
a:
  - v:
b: c:

Both dhall-to-yaml-ng and dhall-to-json render it as expected:

$ dhall-to-yaml-ng < t.dhall 
a:
- "v:"
b: "c:"

$ dhall-to-json < t.dhall 
{
  "a": [
    "v:"
  ],
  "b": "c:"
}

Tested with dhall-to-yaml/dhall-to-json versions 1.7.4 and 1.7.6, and dhall-to-yaml-ng versions 1.2.4 and 1.2.6.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions