Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: added modifier to have solid inner borders in UTF-8 tables #40

Merged
merged 1 commit into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Added

- Add `modifiers::UTF8_SOLID_INNER_BORDERS`, which makes the inner borders solid lines: `│─` by [ModProg](https://github.com/ModProg) for [#39](https://github.com/Nukesor/comfy-table/issues/39).

## [4.0.1] - 2021-07-08

Expand Down
12 changes: 12 additions & 0 deletions src/style/modifiers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@
/// ╰───────┴───────╯
/// ```
pub const UTF8_ROUND_CORNERS: &str = " ╭╮╰╯";

/// A modifier, that when applied will convert the inner borders to solid lines.
/// ```text
/// ╭───────┬───────╮
/// │ Hello │ there │
/// ╞═══════╪═══════╡
/// │ a │ b │
/// ├───────┼───────┤
/// │ c │ d │
/// ╰───────┴───────╯
/// ```
pub const UTF8_SOLID_INNER_BORDERS: &str = " │─ ";