Skip to content

Commit

Permalink
enable split-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kwantam committed Jun 19, 2014
1 parent 125fdab commit ebc12f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fmt/parasplit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ impl<'a> Iterator<Result<Paragraph,String>> for ParagraphStream<'a> {
}

pLines.push(self.lines.next().unwrap().get_fileline().line);

// when we're in split-only mode, we never join lines, so stop here
if self.opts.split_only {
break;
}
}

// if this was a mail header, then the next line can be detected as one. Otherwise, it cannot.
Expand Down

0 comments on commit ebc12f5

Please sign in to comment.