Skip to content

Unexpected handling of unicode when combining files #1

Description

@katettudelft

Hello,

I saw some unexpected behaviour when combining two files together via your docker image.

Here's an example:

File 1:

[aws]
symbol = ""

File 2:

[aws]
format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'

I'd expected a result like this:

[aws]
format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
symbol = ""

But actually got:

[aws]
format = "\\[[$symbol($profile)(\\($region\\))(\\[$duration\\])]($style)\\]"
symbol = "\ue33d  "

As you can see, " " is converted to "\ue33d ". Any ideas on what might be causing this?

For context, I'm trying to merge two Starship Presets together, which make use of the unicode glyphs from Nerd Fonts.

The preset files are a lot longer than my examples, which is why I was so pleased to see your repo! It'll be a hell of a timesaver. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions