if (i == 0) { copy.pushstyles = box.pushstyles; } else if (i == words.length - 1) { copy.popstyles = box.popstyles; }
    private static void splitInlineBox(Context c, InlineBox ibox, List temp_list) {        if (!(ibox instanceof InlineTextBox)) {            temp_list.add(ibox.copy());            return;        }        InlineTextBox box = (InlineTextBox) ibox;        String[] words = words(box);        // don't split if only one word        if (words.length < 2) {            temp_list.add(box);            return;        }        int currentWordPosition = box.start_index + box.getSubstring().indexOf(words[0]);        for (int i = 0; i < words.length; i++) {            InlineTextBox copy = (InlineTextBox) box.copy();            copy.setSubstring(currentWordPosition, currentWordPosition + words[i].length());//was: (words[i]);            currentWordPosition = currentWordPosition + words[i].length() + 1;//skip the space too            copy.contentWidth = FontUtil.len(c, copy);            temp_list.add(copy);            if (i == 0) {                copy.pushstyles = box.pushstyles;            } else if (i == words.length - 1) {                copy.popstyles = box.popstyles;            }        }    }