diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-02-12 14:03:45 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-02-17 10:23:03 -0500 |
commit | 97c58c4586508bdb84cc68873ac1294309a7268f (patch) | |
tree | c8a672502a94eb73c93150c787a314d081a7ca93 /src/main.rs | |
parent | 64c93a7f8a4babe7ef794ed053cb06baef1dcd3b (diff) |
Allow user to specify tab replacement string522-tab-string
Fixes #522
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 5757fbab..3587d184 100644 --- a/src/main.rs +++ b/src/main.rs @@ -258,7 +258,7 @@ fn show_config(config: &config::Config, writer: &mut dyn Write) -> std::io::Resu side-by-side = {side_by_side} syntax-theme = {syntax_theme} width = {width} - tabs = {tab_width} + tab_string = '{tab_string}' word-diff-regex = {tokenization_regex}", max_line_distance = config.max_line_distance, max_line_length = config.max_line_length, @@ -278,7 +278,7 @@ fn show_config(config: &config::Config, writer: &mut dyn Write) -> std::io::Resu cli::Width::Fixed(width) => width.to_string(), cli::Width::Variable => "variable".to_string(), }, - tab_width = config.tab_width, + tab_string = config.tab_string, tokenization_regex = format_option_value(&config.tokenization_regex.to_string()), )?; Ok(()) |