Skip to content

Commit

Permalink
fix(headers): avoid double spaces in the headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Yassir Barchi authored and paolobarbolini committed Mar 27, 2024
1 parent 7c3ca39 commit ccaf5a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/headers/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl<'a> EmailWriter<'a> {

/// Equivalent to calling `new_line()` and `space()` consecutively.
pub(crate) fn new_line_and_space(&mut self) -> fmt::Result {
self.spaces = 0;
self.writer.write_str("\r\n ")?;
self.line_len = 1;
self.optional_breakpoint = false;
Expand Down

0 comments on commit ccaf5a7

Please sign in to comment.