Skip to content

Commit

Permalink
revert: remove title padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed May 2, 2024
1 parent 0f97359 commit ce8dd87
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,20 @@ macro_rules! style {
macro_rules! title {
// Single input
($arg:expr) => {{
let res = format!(" {} ", $arg);
let res = format!("{}", $arg);
res
}};

// format-like
($($arg:expr),*$(,)?) => {{
let res = format!(" {} ", format!($($arg),*));
let res = format!("{}", format!($($arg),*));
res
}};

// vec-like
($($arg:expr);*$(;)?) => {{
let res = vec![
" ".into(),
$($arg,)*
" ".into(),
];
res
}};
Expand Down

0 comments on commit ce8dd87

Please sign in to comment.