Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix: add utf-8 parsint for emoji_support #40

Merged
merged 2 commits into from
Aug 30, 2022

Commits on Aug 30, 2022

  1. hotfix: add utf-8 parsint for emoji_support

    There is a major bug in yaml.v3 that makes it incapable of encoding
    emojis. There has been an issue and PR open to fix it for a very long
    time, but it has still gotten no attention. This PR adds a new hotfix
    that will parse the literal `\U00000000` codepoint sequences that yaml.v3
    produces and outputs the unicode encoding. It can be enabled with the
    new `emoji_support` configuration value for the basic formatter.
    Unfortunately, any scalar with an emoji will come out double quoted;
    might be able to rectify this but it will be very nasty. Going to accept
    that consequence for now to unblock this breakage.
    braydonk committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    f1adcb0 View commit details
    Browse the repository at this point in the history
  2. hotfix: add p.writeArbitrary

    It was weird having p.write and a manual p.out append so I wrote a
    method for that for consistency.
    braydonk committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    0bc397a View commit details
    Browse the repository at this point in the history