if (!isLineElement(firstChild)) {
errorLogAndThrow("First child not a line element");
return false;
}
ContentElement element = firstChild.asElement();
boolean first = true;
while (true) {
if (line.getParagraph().getPreviousSibling() != line.getLineElement()) {
errorLogAndThrow("Junk between line token and its paragraph");
return false;
}
ContentNode node;
for (node = line.getParagraph().getFirstChild(); node != null; node = node.getNextSibling()) {
ContentElement e = node.asElement();
if (e != null) {
if (isLineElement(e)) {
errorLogAndThrow("Line element stuck inside rendering paragraph: " + e);
return false;
}