if (spaces + crLfDelta > 0) { if (literal.length() > spaces) { lastChild.setChars(literal.subSequence(0, literal.length() - spaces - crLfDelta).trimEnd()); } else { lastChild.unlink(); BasedSequence literal = text.getChars(); if (literal.length() > 1) { lastChild.setChars(literal.subSequence(0, literal.length() - crLfDelta).trimEnd()); } else { lastChild.unlink();
BasedSequence linkText = literal.subSequence(link.getBeginIndex(), link.getEndIndex()).trimEnd(); if (isIgnoredLinkPrefix(linkText)) continue;
state.nodeRemoved(tmp); } else { previous.setChars(previous.getChars().trimEnd());
} else { if (firstChild != null) firstChild.setChars(firstChild.getChars().trimStart()); if (lastChild != null) lastChild.setChars(lastChild.getChars().trimEnd());
if (spaces + crLfDelta > 0) { if (literal.length() > spaces) { lastChild.setChars(literal.subSequence(0, literal.length() - spaces - crLfDelta).trimEnd()); } else { lastChild.unlink(); BasedSequence literal = text.getChars(); if (literal.length() > 1) { lastChild.setChars(literal.subSequence(0, literal.length() - crLfDelta).trimEnd()); } else { lastChild.unlink();
BasedSequence linkText = literal.subSequence(link.getBeginIndex(), link.getEndIndex()).trimEnd(); if (isIgnoredLinkPrefix(linkText)) continue;
state.nodeRemoved(tmp); } else { previous.setChars(previous.getChars().trimEnd());
} else { if (firstChild != null) firstChild.setChars(firstChild.getChars().trimStart()); if (lastChild != null) lastChild.setChars(lastChild.getChars().trimEnd());