if (needStartText) { needStartText = false; InlineBox iB = createInlineBox("", parent, parentStyle, null); iB.setStartsHere(true); iB.setEndsHere(false); child = createInlineBox(textNode.getData(), parent, parentStyle, textNode); InlineBox iB = createInlineBox("", parent, parentStyle, null); iB.setStartsHere(needStartText); iB.setEndsHere(needEndText);
if (needStartText) { needStartText = false; InlineBox iB = createInlineBox("", parent, parentStyle, null); iB.setStartsHere(true); iB.setEndsHere(false); child = createInlineBox(textNode.getData(), parent, parentStyle, textNode); InlineBox iB = createInlineBox("", parent, parentStyle, null); iB.setStartsHere(needStartText); iB.setEndsHere(needEndText);