[
https://issues.apache.org/jira/browse/TIKA-4943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18125482#comment-18125482
]
ASF GitHub Bot commented on TIKA-4943:
--------------------------------------
tballison commented on PR #3277:
URL: https://github.com/apache/tika/pull/3277#issuecomment-6079064057
Just some :robot: nits. Some look reasonable.
```
Edge cases
1. No real file pins the new output. All 14 new tests are hand-built
object graphs. Of the 16 .one fixtures only
testOneNote2007OrEarlier.one changes (two <ul>, six <li>, verified by
diffing main vs PR), and nothing asserts it. No
fixture has a table or a numbered list. Ask the author to contribute
the Section-1.one from the PR description (their
own content, 86 KB, covers table, nested bullets, 1/a/i, restart) with
an OneNoteParserTest asserting the shape, plus
one assertion on the 2007 fixture.
2. Fallback pass order. walkObjectGroupRoots walks deferred tables before
deferred list containers. A table nested in an
unreached outline element is emitted as a bare root, then the element
finds it visited and loses it. One pass over
deferredObjects in group order gives the same completeness and keeps
nesting; only true cycles stay order-arbitrary.
Degraded path only, low.
Hygiene
- OneNoteStructureJcid duplicates OneNoteJcid down to the javadoc line.
Move the six constants there.
- listStyleComparisonCache memoizes Arrays.equals on 4–6-byte arrays via
nested IdentityHashMap; costs more than it saves.
Delete it and the reflection test on the private field; ListStyle
becomes static.
- indent from RgOutlineIndentDistance on outline elements: the spec puts
that property on jcidOutlineNode; elements carry
OutlineElementChildLevel. I probed the fixture: null on every item. Drop
the field.
- testFallbackRecoversDepthSkippedTableDescendants reflects into two
private methods; a 999-object chain reaches the depth
cap through the public walk.
```
> Emit onenote lists and tables as html lists and tables
> ------------------------------------------------------
>
> Key: TIKA-4943
> URL: https://issues.apache.org/jira/browse/TIKA-4943
> Project: Tika
> Issue Type: Improvement
> Components: parser
> Reporter: Henry Lindeman
> Priority: Minor
>
> currently table cells and list items are emitted in p tags
> instead use <tr>/<td> and <ul>/<li>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)