pydocx icon indicating copy to clipboard operation
pydocx copied to clipboard

Additional faked sub/super script test case

Open kylegibson opened this issue 9 years ago • 0 comments

While working on #116, I noticed the following corner case doesn't get detected. This occurs because the paragraph has a local size specified.

testing2

Do we want to detect this as a faked superscript (and likewise the analogous case for subscript)? Either way, we should include a test case that pegs the desired behavior.

    <w:p>
      <w:pPr>
        <w:rPr>
          <w:sz w:val="72"/>
          <w:szCs w:val="72"/>
        </w:rPr>
      </w:pPr>
      <w:r>
        <w:rPr>
          <w:sz w:val="72"/>
          <w:szCs w:val="72"/>
        </w:rPr>
        <w:t>Testing</w:t>
      </w:r>
      <w:r>
        <w:rPr>
          <w:position w:val="16"/>
          <w:sz w:val="20"/>
          <w:szCs w:val="20"/>
        </w:rPr>
        <w:t>2</w:t>
      </w:r>
    </w:p>

kylegibson avatar Mar 30 '15 18:03 kylegibson