Skip to content

adf fmt: decorations with U+FE0F (⚠️ CONSTRAINTS, 🗂️ FILES, 🛠️ TOOLS) don't round-trip #351

Closed

Description

@stackbilt-admin

Found while fixing #350 (#318 PR1).

parseAdf drops the U+FE0F variation selector from section decorations, and formatAdf emits the parsed form. So a manifest/module written with the STANDARD_DECORATIONS for CONSTRAINTS (⚠️), FILES (🗂️) or TOOLS (🛠️) is rewritten by adf fmt --write to the text-style glyph, and adf fmt --check reports it as non-canonical.

#350 sidestepped this for the new VENDORS section by using a bare U+1F3F7. Fix here: either have the parser preserve U+FE0F, or have the formatter emit STANDARD_DECORATIONS[key] when it equals the parsed decoration modulo U+FE0F. Either changes adf fmt output for existing files, so it needs a CHANGELOG note; add a round-trip test over every STANDARD_DECORATIONS entry.

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