Skip to content

Example text does not print spaces correctly #57

@Ahhhh-man

Description

@Ahhhh-man

Describe the bug

Example text does not print spaces correctly.

Setup

OS: Ubuntu 25.04 x86_64
Shell: bash 5.2.37
Terminal: ghostty
Terminal Multiplexer: N/A
github.com/charmbracelet/fang v0.3.0 from main

To Reproduce

Steps to reproduce the behavior:

  1. Run example code https://github.com/charmbracelet/fang/blob/main/example/main.go
  2. Copying from the examples and pasting directly into my terminal fails

Expected behavior

I should be able to copy and paste example shown on the help. When using cobra directly, this works as expected.

Screenshots

Image
Image

Additional context

The unicode character that seems to be between the commands is \u00a0 (nonbreaking space). It should be \u0020 (space)

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