mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-12 08:12:27 +01:00
italics enable|disable working
This commit is contained in:
committed by
David Peter
parent
d702d6740c
commit
e90308e1f8
@@ -305,13 +305,14 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
||||
if self.config.output_wrap == OutputWrap::None {
|
||||
let true_color = self.config.true_color;
|
||||
let colored_output = self.config.colored_output;
|
||||
|
||||
let italics = self.config.italics;
|
||||
|
||||
for &(style, region) in regions.iter() {
|
||||
let text = &*self.preprocess(region, &mut cursor_total);
|
||||
write!(
|
||||
handle,
|
||||
"{}",
|
||||
as_terminal_escaped(style, &*text, true_color, colored_output,)
|
||||
as_terminal_escaped(style, &*text, true_color, colored_output, italics,)
|
||||
)?;
|
||||
}
|
||||
|
||||
@@ -367,6 +368,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
||||
),
|
||||
self.config.true_color,
|
||||
self.config.colored_output,
|
||||
self.config.italics
|
||||
)
|
||||
)?;
|
||||
break;
|
||||
@@ -406,6 +408,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
|
||||
),
|
||||
self.config.true_color,
|
||||
self.config.colored_output,
|
||||
self.config.italics
|
||||
),
|
||||
panel_wrap.clone().unwrap()
|
||||
)?;
|
||||
|
Reference in New Issue
Block a user