Skip to content

Commit

Permalink
Fix title padding for utf-8/unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinJadoul committed Dec 13, 2020
1 parent ea66493 commit a70fffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ctfwatch/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
2 changes: 1 addition & 1 deletion ctfwatch/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn strip_ansi(s: &String) -> String {
}

fn extra_bytes (s1: &String) -> usize {
s1.chars().count() - strip_ansi(&s1).chars().count()
s1.len() - strip_ansi(&s1).chars().count()
}

fn double_line (s1: &String, s2: &String) -> String {
Expand Down

0 comments on commit a70fffd

Please sign in to comment.