Skip to content

Only first hash in a line should be formatted #316

Description

@m-aciek

Current behavior

- foo: bar # see issue #42 for details
+ foo: bar  # see issue  # 42 for details

yamlfix adds double space before and single space after every hash character in a line.

Desired behavior

- foo: bar # see issue #42 for details
+ foo: bar  # see issue #42 for details

Only first hash should be formatted.

Screenshots

Screenshot_20260604-124500_GitHub.png

Environment

rev: f857ca3, 1.19.1, latest version as of today

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions