diff options
author | Dan Davison <dandavison7@gmail.com> | 2019-07-29 10:42:40 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2019-07-29 11:48:33 -0400 |
commit | 7daad7d7c06dd65f51660ed473686c0bfa331d56 (patch) | |
tree | 43459dc4c537c0b47635105a1622921dd828fec4 /src/draw.rs | |
parent | e60d50a7dda4c93fa1e2e114ac689b29b2eead44 (diff) |
Tweak styling of file metadata
Diffstat (limited to 'src/draw.rs')
-rw-r--r-- | src/draw.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draw.rs b/src/draw.rs index 7fe54e1d..7211e620 100644 --- a/src/draw.rs +++ b/src/draw.rs @@ -47,7 +47,7 @@ pub fn write_underlined( line_style: Style, heavy: bool, ) -> std::io::Result<()> { - writeln!(writer, "{}", text)?; + writeln!(writer, "{}", line_style.paint(text))?; write_horizontal_line(writer, line_width, line_style, heavy)?; Ok(()) } @@ -116,7 +116,7 @@ fn write_boxed_partial( "{}{}\n{} {}\n{}", line_style.paint(&horizontal_edge), line_style.paint(down_left), - text, + line_style.paint(text), line_style.paint(vertical), line_style.paint(&horizontal_edge), ) |