Skip to content

Commit

Permalink
Change comments around
Browse files Browse the repository at this point in the history
  • Loading branch information
cdesaintguilhem committed Oct 13, 2024
1 parent e77b629 commit 1d15b86
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/format.rs
Original file line number Diff line number Diff line change
@@ -68,17 +68,7 @@ pub fn format_file(
indent_char,
);

// Split the line based on:
// - environment commands, and
// - sectioning commands,
// and add the split to the queue.

// Wrap the line after indenting, and add the wrap to the queue.

// TODO: implement debug checks that the indent and the line length are correct.

// Add line to new text

if needs_wrap(&line, &temp_state, args) {
let wrapped_lines =
apply_wrap(&line, &temp_state, file, args, logs);
@@ -96,6 +86,7 @@ pub fn format_file(
}
}

// Add line to new text
state = temp_state;
new_text.push_str(&line);
new_text.push_str(LINE_END);

0 comments on commit 1d15b86

Please sign in to comment.