MCPcopy Create free account
hub / github.com/M66B/FairEmail / withinHtml

Method withinHtml

app/src/main/java/eu/faircode/email/HtmlEx.java:92–100  ·  view source on GitHub ↗
(StringBuilder out, Spanned text, int option)

Source from the content-addressed store, hash-verified

90 }
91
92 private /* static */ void withinHtml(StringBuilder out, Spanned text, int option) {
93 if ((option & TO_HTML_PARAGRAPH_FLAG) == TO_HTML_PARAGRAPH_LINES_CONSECUTIVE) {
94 encodeTextAlignmentByDiv(out, text, option);
95 return;
96 }
97
98 Log.breadcrumb("withinHtml", "length", Integer.toString(text.length()));
99 withinDiv(out, text, 0, text.length(), option);
100 }
101
102 private /* static */ void encodeTextAlignmentByDiv(StringBuilder out, Spanned text, int option) {
103 int len = text.length();

Callers 1

toHtmlMethod · 0.95

Calls 5

breadcrumbMethod · 0.95
withinDivMethod · 0.95
toStringMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected