-
Notifications
You must be signed in to change notification settings - Fork 38
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
Feature: Double lines #237
Comments
Hi @jo-fleck ! Unfortunately, implementing this in text backend would require a lot of changes due to how horizontal lines are handled. Furthermore, I think it will be impossible to keep feature parity in the other backends. Notice that, due to the default row spacing in terminals, double lines in text backend look strange:
One good work around is to select a font that supports more UTF-8 box drawing and use characters with double horizontal lines as the table format as shown here: https://cloford.com/resources/charcodes/utf-8_box-drawing.htm You can mix double lines and single lines using the keywords |
Many thanks for looking into this and for suggesting the workaround! I wasn't aware of these particular characters so I am curious to work with them. |
Many thanks for this great package @ronisbr !
It can be helpful to have double horizontal lines in a table, e.g. at the bottom or to separate different panels within the same table.
One (hopefully intuitive) way to implement this would be to repeat the row number in the
hlines
vector.So if you would like to have two lines after row n, you would simply include n twice in the
hlines
vector. Here is an example where the last line of the table is doubled:pretty_table(data; alignment = alig, header = head, hlines = [1, 10, 23, 33, :end, :end], backend = Val(:latex), highlighters = (hl_c2, hl_c3, hl_c4))
Could this be implemented without conflicting with other features?
The text was updated successfully, but these errors were encountered: