Rename output component to 'style compinent', move wrap to separate module

This commit is contained in:
sharkdp
2020-03-21 20:54:16 +01:00
committed by David Peter
parent a8851e1307
commit 84ba323b1c
9 changed files with 88 additions and 86 deletions

View File

@ -83,7 +83,7 @@ impl<'b> Controller<'b> {
writer: &mut dyn Write,
input_file: InputFile<'a>,
) -> Result<()> {
if !reader.first_line.is_empty() || self.config.output_components.header() {
if !reader.first_line.is_empty() || self.config.style_components.header() {
printer.print_header(writer, input_file)?;
}
@ -118,7 +118,7 @@ impl<'b> Controller<'b> {
}
RangeCheckResult::InRange => {
if self.config.output_components.snip() {
if self.config.style_components.snip() {
if first_range {
first_range = false;
mid_range = true;