Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cdesaintguilhem committed Oct 15, 2024
1 parent 0e4ec8c commit ccbc433
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ use std::iter::zip;

/// Central function to format a file
pub fn format_file(
old_tex: &str,
old_text: &str,
file: &str,
args: &Cli,
logs: &mut Vec<Log>,
) -> String {
record_file_log(logs, Info, file, "Formatting started.");

// Clean the source file and zip its lines with line numbers
let old_text = clean_text(old_tex, args);
let old_text = clean_text(old_text, args);
let mut old_lines = zip(1.., old_text.lines());

// Initialise
let mut state = State::new();
let mut queue: Vec<(usize, String)> = vec![];
let mut new_text = String::with_capacity(2 * old_tex.len());
let mut new_text = String::with_capacity(2 * old_text.len());

// Select the character used for indentation.
let indent_char = if args.usetabs { "\t" } else { " " };
Expand Down

0 comments on commit ccbc433

Please sign in to comment.