Fixed closing of tables if there is a table following a table with only a new line between