elifesciences / decision-letter-parser

Parse docx file containing decision letter and author response content and produce output in other formats
MIT License
0 stars 0 forks source link

More precise run matching for complex styles tags. #111

Closed gnott closed 3 years ago

gnott commented 3 years ago

Re issue https://github.com/elifesciences/issues/issues/6681

A couple examples where complex styles bold formatting shows up in the XML output where we do not want them to appear. By comparing the .docx XML with the other test case examples, it is possible to produce the desired output in all defined cases by looking for more complicated tag attribute matching rules of the <w:rFonts> tag.