mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-22 07:42:52 +00:00
Fixed Word 15 line breaks
This commit is contained in:
parent
a9e0f7b897
commit
ce6de84c52
1 changed files with 12 additions and 2 deletions
|
@ -1765,8 +1765,18 @@ public class HtmlHelper {
|
|||
e.attr("style", mergeStyles(style, "text-decoration:line-through;"));
|
||||
}
|
||||
} else {
|
||||
e.remove();
|
||||
Log.i("Removed tag=" + tag + " ns=" + ns + " content=" + e.text());
|
||||
if ("o:p".equals(tag) && "\u00a0".equals(e.wholeText())) {
|
||||
// <meta name=Generator content="Microsoft Word 15 (filtered medium)">
|
||||
// <p class=MsoNormal>
|
||||
// <span style='font-family:"Calibri",sans-serif'>
|
||||
// <o:p> </o:p>
|
||||
// </span>
|
||||
// </p>
|
||||
e.tagName("br");
|
||||
} else {
|
||||
e.remove();
|
||||
Log.i("Removed tag=" + tag + " ns=" + ns + " content=" + e.text());
|
||||
}
|
||||
}
|
||||
} else if (!"html".equals(tag) && !"body".equals(tag) && !"w".equals(tag)) {
|
||||
String xmlns = e.attr("xmlns").toLowerCase(Locale.ROOT);
|
||||
|
|
Loading…
Reference in a new issue