Skip to content

Commit

Permalink
Correction when Opt[intrinsicOptions] is an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 2, 2023
1 parent 2027ac2 commit 1a727dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/paperoptionlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,16 @@ static function make_intrinsic_json_map(Conf $conf, $vconf, $all) {
}

$accum = [];
expand_json_includes_callback([$s1, $s2], function ($j) use (&$accum) {
$callback = function ($j) use (&$accum) {
if (is_int($j->id)) {
$accum[$j->id][] = $j;
return true;
} else {
return false;
}
});
};
$s1 && expand_json_includes_callback($s1, $callback);
$s2 && expand_json_includes_callback($s2, $callback);
$xtp = new XtParams($conf, null);
foreach ($accum as $id => $list) {
if (isset($map[$id])) {
Expand Down

0 comments on commit 1a727dc

Please sign in to comment.