|
|
|
@ -7133,7 +7133,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
Document document = JsoupEx.parse(file);
|
|
|
|
|
HtmlHelper.truncate(document, false);
|
|
|
|
|
HtmlHelper.embedInlineImages(context, id, document, true);
|
|
|
|
|
|
|
|
|
|
// Prevent multiple pages for Microsoft Office
|
|
|
|
@ -7141,6 +7140,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
if (section == null)
|
|
|
|
|
section = document.body();
|
|
|
|
|
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
boolean print_html_header = prefs.getBoolean("print_html_header", true);
|
|
|
|
|
if (print_html_header) {
|
|
|
|
|
Element header = document.createElement("p");
|
|
|
|
|
|
|
|
|
|
if (message.from != null && message.from.length > 0) {
|
|
|
|
@ -7221,8 +7223,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
|
|
|
|
|
if (hasAttachments)
|
|
|
|
|
section.appendChild(footer);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new String[]{message.subject, document.html()};
|
|
|
|
|
return new String[]{message.subject, section.html()};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|