Page MenuHomePhabricator

`fromsection` and `tosection` attributes of `pages` tag will not work when empty `onlysection` present
Open, Needs TriagePublicBUG REPORT

Description

  • using <pages index="book.pdf" from="19" to="20" fromsection="s-2" tosection="" onlysection="" /> will get the whole page 19.
  • using <pages index="book.pdf" from="19" to="20" fromsection="" tosection="s-1" onlysection="" /> will get the whole page 20.
  • using <pages index="book.pdf" from="19" to="20" fromsection="" tosection="s-1" /> and <pages index="book.pdf" from="19" to="20" fromsection="s-2" tosection="" /> are OK.

So empty onlysection attribute affect to stop working of fromsection and tosection attributes.

Event Timeline

I'm struggling to comprehend which part of this is not intended behavior ?

I'm struggling to comprehend which part of this is not intended behavior ?

<pages index="book.pdf" from="19" to="20" fromsection="s-2" tosection="" onlysection="" /> must get from section s-2 of page 19 not whole page 19 as <pages index="book.pdf" from="19" to="20" fromsection="" tosection="s-1" /> but the empty onlysection prevent if from that so now:
<pages index="book.pdf" from="19" to="20" fromsection="s-2" tosection="" onlysection="" /> == <pages index="book.pdf" from="19" to="20" />
valued fromsection and valued tosection have no effect when empty onlysection is present.