From 77998f88297501999843015c549b5a761b50da0a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 25 Aug 2022 00:40:57 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- pwiki/page.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwiki/page.js b/pwiki/page.js index b84724f..b852452 100755 --- a/pwiki/page.js +++ b/pwiki/page.js @@ -1059,7 +1059,7 @@ object.Constructor('Page', BasePage, { [text, join] = state.macros[name] } } if(src){ - var base = this.get(await base.parse(src, state)) + var match = this.get(await base.parse(src, state)) join = _getBlock('join') ?? join @@ -1070,11 +1070,11 @@ object.Constructor('Page', BasePage, { // of the iterated pages, that is handled by the // respective include/source/.. macros, this however // only depends on page count... - depends.add(base.path) + depends.add(match.path) // expand matches... var first = true - for await(var page of base.asPages(strict)){ + for await(var page of match.asPages(strict)){ if(join && !first){ yield join } first = false