Skip to content

Commit

Permalink
minor tweaks to XPath actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Nov 9, 2023
1 parent d1d6737 commit 2ddcd29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{$NEXT}}
- more fixes to XML :omit option
- document some PDF 2.0 tags
- add :Lang to root element in doco and tests

0.1.14 2023-10-28T14:27:41+13:00
- Avoid whitespace in some tag XML serialization e.g.
Expand Down
7 changes: 4 additions & 3 deletions lib/PDF/Tags/XPath/Actions.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ class PDF::Tags::XPath::Actions {
make -> @set {
my @step;
for @set {
my @group = &axis($_).grep(&node-test);
@group = ($_)(@group) with &predicate;
my @group = .&axis.grep(&node-test);
@group .= &predicate
if &predicate.defined;
@step.append: @group;
}
@step;
Expand All @@ -75,7 +76,7 @@ class PDF::Tags::XPath::Actions {
++$*position;
my $v := &expr();
take $_ if ($v ~~ Bool && $v)
|| ($v ~~ Int && $v == $*position);
|| ($v ~~ Int && $v == $*position);
}
}
}
Expand Down

0 comments on commit 2ddcd29

Please sign in to comment.