ignore code block start in message preview. fixes #3124

This commit is contained in:
Daniel Gultsch 2019-01-12 14:26:33 +01:00
parent 5215601150
commit ba34561235

View file

@ -314,6 +314,9 @@ public class UIHelper {
SpannableStringBuilder builder = new SpannableStringBuilder(); SpannableStringBuilder builder = new SpannableStringBuilder();
for (CharSequence l : CharSequenceUtils.split(styledBody, '\n')) { for (CharSequence l : CharSequenceUtils.split(styledBody, '\n')) {
if (l.length() > 0) { if (l.length() > 0) {
if (l.toString().equals("```")) {
continue;
}
char first = l.charAt(0); char first = l.charAt(0);
if ((first != '>' || !isPositionFollowedByQuoteableCharacter(l, 0)) && first != '\u00bb') { if ((first != '>' || !isPositionFollowedByQuoteableCharacter(l, 0)) && first != '\u00bb') {
CharSequence line = CharSequenceUtils.trim(l); CharSequence line = CharSequenceUtils.trim(l);