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

Line spacing between table rows breaks ascii art #2

Open
phillbush opened this issue Jan 12, 2025 · 2 comments
Open

Line spacing between table rows breaks ascii art #2

phillbush opened this issue Jan 12, 2025 · 2 comments

Comments

@phillbush
Copy link

Gopherholes often use some form of ascii/unicode-art in menus. The default spacing between table rows (into which gophermenu lines are formatted) may brake the intended output, which is expected to be similar to what a terminal emulator would render.

This mis-rendering is more evident with box-drawing characters on Unicode-art:

scrot

Which should be like this (rendered on XTerm):

scrot

@phillbush
Copy link
Author

I tried to hack a ./dillo/style.css but could not find the right attribute to set. Zeroing td and tr's padding kinda helps, creating a tiny (but noticeable) space between lines; but empty info lines gets shrunk to zero height, as if they didnt exist.

@rodarima
Copy link
Member

Try setting the line-height lower than 1:

table, td, tr { border-collapse: collapse; line-height: 0.88; font-size: 14px }

There is some problem in Dillo that is making box characters render slightly smaller than what it should be, maybe is related to the font I'm using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants