optimize output
This commit is contained in:
+4
-1
@@ -78,7 +78,10 @@ pub mod deepl_helper {
|
||||
pub fn get_text(&self, target_language: &str) -> String {
|
||||
let mut trans: String = String::new();
|
||||
for translation in self.translations.iter() {
|
||||
trans.push_str(&format!("--- Detected Source language {} -------------------------\n", translation.detected_source_language));
|
||||
trans.push_str(&format!(
|
||||
"--- Detected Source language {} -------------------------\n",
|
||||
translation.detected_source_language)
|
||||
);
|
||||
trans.push_str(&format!("{}: {}", target_language, translation.text));
|
||||
trans.push_str("\n");
|
||||
trans.push_str("---------------------------------------------------------\n");
|
||||
|
||||
Reference in New Issue
Block a user