Fixed Word 15 line breaks

pull/217/head
M66B 11 months ago
parent a9e0f7b897
commit ce6de84c52

@ -1764,10 +1764,20 @@ public class HtmlHelper {
String style = e.attr("style");
e.attr("style", mergeStyles(style, "text-decoration:line-through;"));
}
} else {
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>&nbsp;</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);
if (!TextUtils.isEmpty(xmlns) && !xmlns.contains(W3NS)) {

Loading…
Cancel
Save