Prevent pasting multiple newlines

This commit is contained in:
M66B 2020-05-22 07:50:47 +02:00
parent 094bdf00a1
commit 79603c5cfe
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class EditTextCompose extends FixedEditText {
CharSequence text = item.getText();
if (text == null)
return false;
html = "<div x-plain=\"true\">" + HtmlHelper.formatPre(text.toString()) + "</div>";
html = "<div>" + HtmlHelper.formatPre(text.toString()) + "</div>";
}
Document document = HtmlHelper.sanitizeCompose(context, html, false);