mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 03:15:39 +01:00
Remove signatures from text to be translated
This commit is contained in:
@@ -350,6 +350,11 @@ public class FragmentDialogTranslate extends FragmentDialogBase {
|
||||
String html = Helper.readText(file);
|
||||
Document d = HtmlHelper.sanitizeCompose(context, html, false);
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean remove_signatures = prefs.getBoolean("remove_signatures", false);
|
||||
if (remove_signatures)
|
||||
HtmlHelper.removeSignatures(d);
|
||||
|
||||
d.select("blockquote").remove();
|
||||
|
||||
HtmlHelper.truncate(d, HtmlHelper.MAX_TRANSLATABLE_TEXT_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user