mirror of
https://github.com/flynx/pWiki.git
synced 2025-11-01 03:20:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
773332436b
commit
77998f8829
@ -1059,7 +1059,7 @@ object.Constructor('Page', BasePage, {
|
|||||||
[text, join] = state.macros[name] } }
|
[text, join] = state.macros[name] } }
|
||||||
|
|
||||||
if(src){
|
if(src){
|
||||||
var base = this.get(await base.parse(src, state))
|
var match = this.get(await base.parse(src, state))
|
||||||
|
|
||||||
join = _getBlock('join')
|
join = _getBlock('join')
|
||||||
?? join
|
?? join
|
||||||
@ -1070,11 +1070,11 @@ object.Constructor('Page', BasePage, {
|
|||||||
// of the iterated pages, that is handled by the
|
// of the iterated pages, that is handled by the
|
||||||
// respective include/source/.. macros, this however
|
// respective include/source/.. macros, this however
|
||||||
// only depends on page count...
|
// only depends on page count...
|
||||||
depends.add(base.path)
|
depends.add(match.path)
|
||||||
|
|
||||||
// expand matches...
|
// expand matches...
|
||||||
var first = true
|
var first = true
|
||||||
for await(var page of base.asPages(strict)){
|
for await(var page of match.asPages(strict)){
|
||||||
if(join && !first){
|
if(join && !first){
|
||||||
yield join }
|
yield join }
|
||||||
first = false
|
first = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user