fixed new line push
This commit is contained in:
@@ -17,10 +17,10 @@ impl DeeplResponse {
|
||||
for translation in self.translations.iter() {
|
||||
trans.push_str(&format!(
|
||||
"--- Detected Source Language {} -------------------------\n",
|
||||
translation.detected_source_language)
|
||||
);
|
||||
translation.detected_source_language
|
||||
));
|
||||
trans.push_str(&format!("{}: {}", target_language, translation.text));
|
||||
trans.push_str("\n");
|
||||
trans.push('\n');
|
||||
trans.push_str("---------------------------------------------------------\n");
|
||||
}
|
||||
trans
|
||||
|
||||
Reference in New Issue
Block a user