1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-22 11:04:21 +00:00

Use writeln! instead of write! to write a new line

This commit is contained in:
Steffo 2024-08-08 00:41:58 +02:00
parent 58a4cc478f
commit 0cda38bb3d
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -62,7 +62,7 @@ impl TelegramWrite for DiarioEntry {
} }
// Newline // Newline
write!(f, "\n")?; writeln!(f)?;
// Quote optionally covered by a spoiler tag // Quote optionally covered by a spoiler tag
match self.warning.to_owned() { match self.warning.to_owned() {
@ -71,7 +71,7 @@ impl TelegramWrite for DiarioEntry {
} }
// Newline // Newline
write!(f, "\n")?; writeln!(f)?;
// Optional citation with optional context // Optional citation with optional context
match (self.quoted_name.to_owned(), self.context.to_owned()) { match (self.quoted_name.to_owned(), self.context.to_owned()) {