optimize output
This commit is contained in:
1 parent
6222cff418
commit
c8c5144346
1 file changed
+4
-1
+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