Nested placeholder coordination problem

I believe the placeholder code below should work, but it doesn’t. It appears to be an issue related to nested placeholder tags. On Scriv 2.7 on Mac on OS 10.9.5.

THE PROBLEM:

The first four lines work as expected. In particular, <$N:PG> increments initially to 1, then the two nested placeholder occurrences take the value 1 also. Just what was wanted.

But thinks go awry in lines 5-9. When we get to line 5, <$N:PG> increments to 2. Then the two nested occurrences of that placeholder that follow (in lines 5 and 9) should also take the value 2. But they don’t, they take the value 1! So, both unwontedly make reference to the value at line 4.

The same trouble arises again in lines 10-12.

THE CODE:

PAGE <$N:PG><$RST_PNL> (<$N#PNL:LAST<$N:PG>> panels)
PANEL <$N:PNL:<$SN>>
PANEL <$N:PNL:<$SN>>
PANEL <$N:PNL:LAST<$N:PG>>

PAGE <$N:PG><$RST_PNL> (<$N#PNL:LAST<$N:PG>> panels)
PANEL <$N:PNL:<$SN>>
PANEL <$N:PNL:<$SN>>
PANEL <$N:PNL:<$SN>>
PANEL <$N:PNL:LAST<$N:PG>>

PAGE <$N:PG><$RST_PNL> (<$N#PNL:LAST<$N:PG>> panels)
PANEL <$N:PNL:<$SN>>
PANEL <$N:PNL:LAST<$N:PG>>

THE COMPILED OUTPUT:*

PAGE 1 (3>) panels
PANEL 1
PANEL 2
PANEL 3>

PAGE 2 (3> panels)
PANEL 1
PANEL 2
PANEL 3
PANEL 3>

PAGE 3 (3> panels)
PANEL 1
PANEL 3>

WHAT SHOULD HAPPEN:

PAGE 1 (3 panels)
PANEL 1
PANEL 2
PANEL 3

PAGE 2 (4 panels)
PANEL 1
PANEL 2
PANEL 3
PANEL 4

PAGE 3 (2 panels)
PANEL 1
PANEL 2

It goes without saying that I may simply be confused about how things are supposed to work.

Thanks,
gr

Scriv 2.7 on Mac on OS 10.9.5

  • I reported the spurious right-brackets in the compiled output under a separate bug report. So, not my concern here.