We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05d0371 commit 5fb61b3Copy full SHA for 5fb61b3
app/src/main/java/com/infomaniak/mail/utils/HtmlFormatter.kt
@@ -92,6 +92,9 @@ class HtmlFormatter(private val html: String) {
92
}
93
94
95
+ // When displaying emails that have very long strings that are hard to break (mostly URLs), sometimes using
96
+ // 'overflow-wrap: break-word' doesn't help softwrapping the line. This results in very wide emails that need to be zoomed out
97
+ // excessively. To fix this issue, we add zero width spaces in optimal places to help this css attribute wrap correctly
98
private fun Node.breakLongStrings() {
99
for (child in childNodes()) {
100
if (child is TextNode) {
0 commit comments