// Path: WhatAndroid/src/main/java/what/whatandroid/comments/spans/LargeQuoteSpan.java
// public class LargeQuoteSpan extends QuoteSpan {
// 	public LargeQuoteSpan(){
// 	}
// 
// 	public LargeQuoteSpan(int color){
// 		super(color);
// 	}
// 
// 	public LargeQuoteSpan(Parcel src){
// 		super(src);
// 	}
// 
// 	@Override
// 	public int getLeadingMargin(boolean first){
// 		return super.getLeadingMargin(first) + 6;
// 	}
// }


import android.graphics.Typeface;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.style.StyleSpan;
import what.whatandroid.comments.spans.LargeQuoteSpan;
package what.whatandroid.comments.tags;



/**
 * Handles site quote tags. Also applies newlines to beginning and end
 * of the quote to make sure it's spaced properly
 */
public class QuoteTagStyle implements TagStyle {
    @Override
    public Spannable getStyle(CharSequence param, CharSequence text) {
        SpannableStringBuilder ssb = new SpannableStringBuilder();
        ssb.append("\n");
        String user = param == null ? null : param.toString();
        if (user != null) {
            int nameEnd = user.indexOf('|');
            if (nameEnd != -1) {
                user = user.substring(0, nameEnd);
            }
            user += " wrote: \n";
            ssb.append(user);
            ssb.setSpan(new StyleSpan(Typeface.BOLD), 1, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        }
        int end = ssb.length();
        ssb.append(text);
// Path: WhatAndroid/src/main/java/what/whatandroid/comments/spans/LargeQuoteSpan.java
// public class LargeQuoteSpan extends QuoteSpan {
// 	public LargeQuoteSpan(){
// 	}
// 
// 	public LargeQuoteSpan(int color){
// 		super(color);
// 	}
// 
// 	public LargeQuoteSpan(Parcel src){
// 		super(src);
// 	}
// 
// 	@Override
// 	public int getLeadingMargin(boolean first){
// 		return super.getLeadingMargin(first) + 6;
// 	}
// }


// Path: WhatAndroid/src/main/java/what/whatandroid/comments/tags/QuoteTagStyle.java
import android.graphics.Typeface;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.style.StyleSpan;
import what.whatandroid.comments.spans.LargeQuoteSpan;

package what.whatandroid.comments.tags;



/**
 * Handles site quote tags. Also applies newlines to beginning and end
 * of the quote to make sure it's spaced properly
 */
public class QuoteTagStyle implements TagStyle {
    @Override
    public Spannable getStyle(CharSequence param, CharSequence text) {
        SpannableStringBuilder ssb = new SpannableStringBuilder();
        ssb.append("\n");
        String user = param == null ? null : param.toString();
        if (user != null) {
            int nameEnd = user.indexOf('|');
            if (nameEnd != -1) {
                user = user.substring(0, nameEnd);
            }
            user += " wrote: \n";
            ssb.append(user);
            ssb.setSpan(new StyleSpan(Typeface.BOLD), 1, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        }
        int end = ssb.length();
        ssb.append(text);
        ssb.setSpan(new LargeQuoteSpan(0xff80cbc4), end, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);