Code example for StrikethroughSpan

0
        final int length = output.length();
        if (opening) {
            strikePos = length;
        } else { 
            if (strikePos > UNDEFINED_POSITION) {
                output.setSpan(new StrikethroughSpan(), strikePos, length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
                strikePos = UNDEFINED_POSITION;
            } 
        } 
    } 
 
    public boolean isProblematicDetected() { 
        return problematicDetected;
    } 
 
    private void handleProblematic() { 
        problematicDetected = true;
    } 
 
    private void handleTd(boolean opening, Editable output) {
        // insert bar for each table column, see https://en.wikipedia.org/wiki/Box-drawing_characters