-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Emoji in indicators can misalign BenchmarkResults table #13
Comments
Hy @buttercubz! I'm glad, you like this project! Can you provide the code for the indicator please? Do you have a space after the emoji? 🚀 works for me, but tried ⚗ and it also doesn't align for me, its shorter. Does it align properly for you, when provide Will work out something to fix this. |
@buttercubz console.log(["🧪", "🧪\uFE0F", "⚗️", "🈴","🚀", "🦕"].map(e => `|${e}|...|... (${e.length}) {${e.split("").map(s => s.codePointAt(0)).join('+')}}`).join("\n")); I worked on this a few days ago, but my first try at making it automatically handle this wasn't successful 😕 For a hotfix, you can try to use |
@littletof of course, sorry for not answering the previous comment I was a little busy |
@buttercubz thanks for the output!
Does this resolve your specific issue? |
yes |
I will leave this open, until there is a proper universal, way to handle this.
I'm thinking of a solution, where its possible to return an Related issues: |
I narrowed down the problem to issues outside this module. Running this script on windows: ['🚀', '🦾', '🧪','⚗️'].forEach(s => {console.log(`${s}...-|-`); console.log(`${s}...\u001b[31m-|-\u001b[0m`);}) results in this output: When using the new (emoji 11) emojis like (Also, the ⚗ emoji being counted as only 1 char wide, but rendered 2 wide seems to be a VSCode terminal issue) Seems like its a windows only issue, but one that is present in both |
With Use this, if the extra space appears: modFn: () => ({indicator: `🧪${colors.reset("\u0008")}`, visibleLength: 2}) This, if emoji is rendered too thin: modFn: () => ({indicator: `⚗ `, visibleLength: 2}) |
hello, I love this package I am using it in a testing framework that I am doing.
when I launch the results the table is out of alignment.
The text was updated successfully, but these errors were encountered: