Skip to content

[Bug] incorrect spacing in password and path validation state with withGuide: false #458

@Simek

Description

@Simek

Environment

  • OS: macOS and Windows
  • Node Version: 24.13.0
  • Package: @clack/prompts
  • Package Version: main

Describe the bug

User input and warning message in invalid state include whitespace characters (spacing) on the left side.

To Reproduce

  1. Add withGuide: false to all prompts in example/basic
  2. Run pnpm dev
  3. Enter not valid input in password and path steps

Expected behavior

User input and warning message in invalid state does not include whitespace characters (spacing) on the left side.

Additional Information

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions