Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

[BUG] testMultiLineDirections test does not follow the spec #30

Description

@paul-louyot

Describe the bug

The spec states that separate steps should be separated with an empty line: "Each paragraph in your recipe file is a cooking step. Separate steps with an empty line.", but the test called testMultiLineDirections shows that two directions separated by a single line return are interpreted as two different steps.

To Reproduce

Check content of testMultiLineDirections in tests/canonical.yaml, which is about parsing the string "Add a bit of chilli\nAdd a bit of hummus"

Current behavior

The result section of the test reads:

      steps:
        -
          - type: text
            value: "Add a bit of chilli"
        -
          - type: text
            value: "Add a bit of hummus"
      metadata: []

Expected behavior

The result of the test should be

    result:
      steps:
        -
          - type: text
            value: "Add a bit of chilli\nAdd a bit of hummus"
      metadata: []

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions