Skip to content

Commit

Permalink
fix: don't ignore '\n\n' reply at begin (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Nov 3, 2023
1 parent c20cd20 commit 811e605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl ReplyHandler {

pub fn text(&mut self, text: &str) -> Result<()> {
debug!("ReplyText: {}", text);
if self.buffer.is_empty() && text == "\n\n" {
if text.is_empty() {
return Ok(());
}
self.buffer.push_str(text);
Expand Down

0 comments on commit 811e605

Please sign in to comment.