Platform: Darwin Malos-MBP 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin
Mercury Parser Version: 2.2.0 (latest release)
Expected Behavior
Regardless of whether parse renders a single page or multiple pages, the key in the object returned by parse indicating how many pages have been rendered should be the same.
Current Behavior
If parse renders a single page the key is rendered_pages, otherwise it's pages_rendered.
Replace all instances of pages_rendered with rendered_pages in the codebase. Doing the opposite would also fix the issue, but seem best to do the former since Mercury's documentation references rendered_pages.
Expected Behavior
Regardless of whether
parse
renders a single page or multiple pages, the key in the object returned byparse
indicating how many pages have been rendered should be the same.Current Behavior
If
parse
renders a single page the key isrendered_pages
, otherwise it'spages_rendered
.Steps to Reproduce
Possible Solution
Replace all instances of
pages_rendered
withrendered_pages
in the codebase. Doing the opposite would also fix the issue, but seem best to do the former since Mercury's documentation referencesrendered_pages
.