none
DOCX - getting an extra tab that is not in the DOCX file RRS feed

  • Question

  • Hi;

    Please take a look at the files in http://www.windwardreports.com/temp/Bug11930.zip - Tab_Good.docx displays the xxxxx line as expected. Tab_Bad.docx adds an extra tab when displaying it. But the two files are basically identical.

    1. The only difference in the <w:p> part is a different w:numId (discussed below) and one sets the w:lang to Chinese.

    2. Tab_Good.docx w:numId=2 -> w:abstractNumId=1; Tab_Bad.docx w:numId=1 -> w:abstractId=0. If you then compare the two w:abstractNum/w:lvl w:ilvl=0 - they are identical.

    So why does the one get the spurious extra tab?

    thanks - dave


    Very funny video - What's your Metaphor?
    Wednesday, April 27, 2011 2:44 PM

Answers

  • The difference is in the suffix applied to the numbering, and you are looking at the wrong set of values.
     
    Tab_Good has numId=2 -> abstractNumId=*1* which has an explicit suffix (to the number) of "nothing", so the tabs included in the text define the start position of each line of the text - and all are set at 2040 twips.
     
    Tab_Bad has numId=1 -> abstractNumId=0 which has no explicit suffix (to the number) and therefore defaults to "tab" (according to the ISO standard), so an extra tab is inserted on each line of the text, again lining them up at 2040 twips. Just as in the other document, each line has a tab character at the start of the text. In the first two numbered paragraphs, this lines up to the indent at 2160 twips; in the third numbered paragraph, the indent is set to 2040 twips, the same as the tab and the 'current' position, so the tab lines up at the next position defined for the paragraph, which is 6355 twips.
     
     

    Enjoy,
    Tony
    www.WordArticles.com
    • Marked as answer by DavidThi808 Friday, May 13, 2011 10:19 PM
    Saturday, May 7, 2011 9:15 AM

All replies

  • Hi, DavidThi808

       Thanks for your question.  One of our engineer will take a look at it and respond soon.

     

     

     


    Hongwei Sun -MSFT
    Wednesday, April 27, 2011 3:27 PM
  • Hi David,

    I will be looking into this for you and will get back to you shortly.

    Best regards,
    Tom Jebo
    Escalation Engineer
    Microsoft Open Specifications

    Thursday, April 28, 2011 2:40 PM
  • The difference is in the suffix applied to the numbering, and you are looking at the wrong set of values.
     
    Tab_Good has numId=2 -> abstractNumId=*1* which has an explicit suffix (to the number) of "nothing", so the tabs included in the text define the start position of each line of the text - and all are set at 2040 twips.
     
    Tab_Bad has numId=1 -> abstractNumId=0 which has no explicit suffix (to the number) and therefore defaults to "tab" (according to the ISO standard), so an extra tab is inserted on each line of the text, again lining them up at 2040 twips. Just as in the other document, each line has a tab character at the start of the text. In the first two numbered paragraphs, this lines up to the indent at 2160 twips; in the third numbered paragraph, the indent is set to 2040 twips, the same as the tab and the 'current' position, so the tab lines up at the next position defined for the paragraph, which is 6355 twips.
     
     

    Enjoy,
    Tony
    www.WordArticles.com
    • Marked as answer by DavidThi808 Friday, May 13, 2011 10:19 PM
    Saturday, May 7, 2011 9:15 AM
  • Oh wow - that's a very subtle item. Thank you for seeing that.

    (Interesting - we handled that for rtf and WordML - but didn't get it in DOCX.)

    thanks - dave


    The future of B.I. - Raw & Uncut
    Friday, May 13, 2011 10:20 PM