docx4j
docx4j copied to clipboard
getEffectiveRpr should always ignore paragraph pPr rPr
I sampled 100 docs I use for testing and manually ran this experiment:
- create new docx file. Type 2 words on first paragraph, highlight entire paragraph and make bold
- then, make the 2nd word in the first paragraph unbold
- new file will have bold rPr within the pPr and bold rPr within the first text run, but not the second
- remove the bold rPr from the first text run, confirm MS word now shows neither word as bold
This experiment suggests that rPr within the pPr is ignored for rPr attributes, whether or not an rPr is present on the text runs within the paragraph.
Fix: delete this block