Skip to content

Bug: Double braces add a question mark ? between the opening braces #1245

@Quatton

Description

@Quatton

Describe the bug

Could or could not be related to #968 and #246 but seems like when you format this document:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.app.name }}

you get

apiVersion: apps/v1
kind: Deployment
metadata:
  name: { ? { .Values.app.name } }

Expected Behavior

Though bracket spacing is acceptable and can be disabled according to #246, question mark should not appear.

Current Behavior

Question mark appeared for some reason.

Steps to Reproduce

  1. Use the provided pre-formatted document.
  2. Format document
  3. The malformed yaml appears.

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions