Code example for SpannableStringBuilder

Methods: append, charAt, length

0
			// mysteryTagContent); 
		} 
	} 
 
	private static void handleP(SpannableStringBuilder text) {
		int len = text.length();
 
		if (len >= 1 && text.charAt(len - 1) == '\n') {
			if (len >= 2 && text.charAt(len - 2) == '\n') {
				return; 
			} 
 
			text.append("\n");
			return; 
		} 
 
		if (len != 0) {
			text.append("\n\n");
		} 
	} 
 
	private static void handleBr(SpannableStringBuilder text) {
		text.append("\n");