267268269270271272273274275276277
if ((currentRow.size() == 1) && (currentRow.get(0).equals(table.getName()))) { currentRow = new ArrayList<String>(); } else { if (!currentRow.isEmpty()) table.addRow(currentRow); currentRow = new ArrayList<String>(); } } currentRow.add(elem);
275276277278279280281282283284285
} currentRow.add(elem); i++; } table.addRow(currentRow); tables.add(table); } article.setTables(tables);