fixed new line push

master
Mathias Rothenhaeusler 2023-01-13 12:38:41 +01:00
parent fc419b5c40
commit c068350316
1 changed files with 3 additions and 3 deletions

View File

@ -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