Skip to content

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Walrus authored and jackpot51 committed Aug 22, 2024
1 parent 0c0b0e1 commit c11f6d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/terminal_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ where

if metadata.flags.contains(Flags::DASHED_UNDERLINE) {
let bottom_offset = style_line_height * 2.0;
let dot = (2.0, Some(bottom_offset));
let dash = (6.0, Some(bottom_offset));
let gap = (3.0, None);
draw_repeated(&[dot, gap]);
draw_repeated(&[dash, gap]);
}

if metadata.flags.contains(Flags::UNDERCURL) {
Expand All @@ -477,7 +477,8 @@ where
1.0,
Some(bottom_offset + 1.0 * style_line_height / 3.0),
),
_ => (1.0, Some(bottom_offset)),
0 => (1.0, Some(bottom_offset)),
_ => unreachable!(),
});
draw_repeated(&pattern)
}
Expand Down

0 comments on commit c11f6d1

Please sign in to comment.