Skip to content

Terraform escape sequences are not processed when parsing strings #171

Closed

Description

@weaversam8

Example code:

block "block_name" {
  a = "line1\nline2"
}

Expected output:

{'block': [{'block_name': {'a': 'line1\nline2', '__start_line__': 1, '__end_line__': 3}}]}

Actual output (note the extra backslash):

{'block': [{'block_name': {'a': 'line1\\nline2', '__start_line__': 1, '__end_line__': 3}}]}

I plan to fix this in a future PR, just creating this issue for tracking purposes.

Activity

  1. added 2 commits that reference this issue on Oct 9, 2024
    65c95bf
    77cfaa6
  2. added a commit that references this issue on Oct 24, 2024
    373aa78
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions