[ 
https://issues.apache.org/jira/browse/TIKA-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16686496#comment-16686496
 ] 

Madhav Bhagat edited comment on TIKA-2781 at 11/14/18 1:32 PM:
---------------------------------------------------------------

Also adding the actual Abstract Num that the Num refers to:

{code:xml}
<w:abstractNum w:abstractNumId="1">
        <w:nsid w:val="FFFFFF7F"/>
        <w:multiLevelType w:val="singleLevel"/>
        <w:tmpl w:val="74ECE336"/>
        <w:lvl w:ilvl="0">
            <w:start w:val="1"/>
            <w:numFmt w:val="decimal"/>
            <w:pStyle w:val="ListNumber2"/>
            <w:lvlText w:val="%1."/>
            <w:lvlJc w:val="left"/>
            <w:pPr>
                <w:tabs>
                    <w:tab w:val="num" w:pos="720"/>
                </w:tabs>
                <w:ind w:left="720" w:hanging="360"/>
            </w:pPr>
        </w:lvl>
    </w:abstractNum>
{code}

The point to note is that it is {{%1.}} and not {{%0.}} that is getting picked 
up by the code. I am trying to sort this out but just wanted to let you know.


was (Author: codebreach):
Also adding the actual Abstract Num that the Num refers to:

{code:xml}
<w:abstractNum w:abstractNumId="0">
        <w:nsid w:val="FFFFFF7E"/>
        <w:multiLevelType w:val="singleLevel"/>
        <w:tmpl w:val="2648DC5C"/>
        <w:lvl w:ilvl="0">
            <w:start w:val="1"/>
            <w:numFmt w:val="decimal"/>
            <w:pStyle w:val="ListNumber3"/>
            <w:lvlText w:val="%1."/>
            <w:lvlJc w:val="left"/>
            <w:pPr>
                <w:tabs>
                    <w:tab w:val="num" w:pos="1080"/>
                </w:tabs>
                <w:ind w:left="1080" w:hanging="360"/>
            </w:pPr>
        </w:lvl>
    </w:abstractNum>
{code}

The point to note is that it is {{%1.}} and not {{%0.}} that is getting picked 
up by the code. I am trying to sort this out but just wanted to let you know.

> Numbering is removed from headings when converting docx
> -------------------------------------------------------
>
>                 Key: TIKA-2781
>                 URL: https://issues.apache.org/jira/browse/TIKA-2781
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.19.1
>            Reporter: Madhav Bhagat
>            Priority: Minor
>         Attachments: Test-Numbering-MultipleLevels.docx, test numbering 
> (1).docx
>
>
> When converting a docx file with numbering in headings, TIKA ignores said 
> numbering and only returns the text. We have are investigating and working on 
> a fix (along with a test) and wanted to know if this is going to be accepted.
> Example of failing test file is attached.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to