You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For nested lists, variable 'obj' is of type 'com.lowagie.text.List', but it is casted to type 'Element'. Therefore the method 'add(Element o)' is called, but this method does not handle lists.
The proper method is 'add(List nested)' in class 'com.lowagie.text.List'. So the above code should look like this:
The HTMLWorker.parseToList() method has a bug when parsing nested lists, e.g.
As a result, only the first-level elements are returned: ['Element-1', 'Element-2'].
The bug is in the HTMLWorker.endElement() method:
For nested lists, variable 'obj' is of type 'com.lowagie.text.List', but it is casted to type 'Element'. Therefore the method 'add(Element o)' is called, but this method does not handle lists.
The proper method is 'add(List nested)' in class 'com.lowagie.text.List'. So the above code should look like this:
Please fix this bug so we can use the official version again. Thank you in advance.
Best regards
Michael
The text was updated successfully, but these errors were encountered: