Skip to content

Commit

Permalink
fix: do not remove extra line breaks in DeepL
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jan 24, 2024
1 parent e0fd57a commit 1dcf8d6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Easydict/Feature/Service/DeepL/EZDeepLTranslate.m
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ - (void)deepLTranslate:(NSString *)text from:(EZLanguage)from to:(EZLanguage)to
}
*/
NSString *translatedText = [responseObject[@"translations"] firstObject][@"text"];
translatedText = [translatedText.trim removeExtraLineBreaks];
NSArray *translatedTextArray = [translatedText toParagraphs];

return translatedTextArray;
Expand Down

0 comments on commit 1dcf8d6

Please sign in to comment.