Ensure that encoded output ends with a newline
This commit is contained in:
parent
903d516af8
commit
23228d7090
2 changed files with 6 additions and 1 deletions
|
@ -62,6 +62,11 @@ impl<R: Read, W: Write> Encoder<R, W> {
|
|||
break;
|
||||
}
|
||||
if n_bytes == 0 {
|
||||
if let Some(wrap) = self.wrap {
|
||||
if total % wrap != 0 {
|
||||
writeln!(self.writer)?;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
for (idx, n) in ibuf.iter().enumerate() {
|
||||
|
|
Loading…
Add table
Reference in a new issue