Giter VIP home page Giter VIP logo

Comments (8)

ghostsquad avatar ghostsquad commented on June 8, 2024 2

Disable Ambiguous Characters are Double Width and try setting export RUNEWIDTH_EASTASIAN=0 environment variable before running.

from bubble-table.

bingoohuang avatar bingoohuang commented on June 8, 2024 2

image

from bubble-table.

Evertras avatar Evertras commented on June 8, 2024 1

charmbracelet/lipgloss#40 also may be related

from bubble-table.

Evertras avatar Evertras commented on June 8, 2024

That looks very wrong, yes :(

I've tested this on the Alacritty and iTerm2 terminals, and I tried it with the Menlo, Input, and Azeret Mono fonts. I have not seen output like your screenshot. What terminal/font are you using?

from bubble-table.

bingoohuang avatar bingoohuang commented on June 8, 2024

Mac, iterm2 Build 3.4.15,

image

I tried several monospace fonts, and can't get the aligned version as yours in README.

from bubble-table.

Evertras avatar Evertras commented on June 8, 2024

I was able to reproduce this: it's the Ambiguous characters are double-width option. Disabling that shows the proper layout.

I think it's the character in particular. There may be some other unicode characters that would work better here, but that character set was intended for box drawing so if this is broken then I'm not optimistic others will work. I'll experiment more with this when I get some time.

from bubble-table.

Evertras avatar Evertras commented on June 8, 2024

Do you mind if I rename this bug to Default borders misalign when using double width for ambiguous characters for clarity?

from bubble-table.

Evertras avatar Evertras commented on June 8, 2024

mattn/go-runewidth#14 may be related

from bubble-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.