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

Label title ext link #122

Closed gnott closed 3 years ago

gnott commented 3 years ago

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

A complicated figure caption includes an <ext-link> tag, and the . in the URL makes it difficult to determine the figure title from the content. This code should make extract_label_title_content() to be less error prone, though the quality of the output will depend on how complicated the input content is.

Another bug noticed while testing is to be more specific when replacing fig <ext-link> tag's xlink:href tag attributes with actual file names, because it should not replace the values in an <ext-link> tag which is linking to a URL.

Bumping the library version number to 0.4.0 due to the new enhancements.