Skip to content

Commit

Permalink
Merge pull request #934 from drgrice1/pretty-print-tweak
Browse files Browse the repository at this point in the history
Forgotten amendment to #921.
  • Loading branch information
pstaabp authored Oct 6, 2023
2 parents 442667a + 8cb35e8 commit b8df652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions lib/PGUtil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ The default is "html".
The C<$level> parameter is the cut off for the depth into objects to show. The
default is 5.
WARNING: This is not the C<pretty_print> method that is directly available in
problems. The C<pretty_print> method that is directly available in problems is
defined in L<PG.pl>, and the usage of that method is C<pretty_print($rh_hash_input)>.
Note that it does not accept the second two parameters of this method. That
method calls the C<pretty_print> method defined in L<PGcore.pm> which in turn
calls this method.
=cut

sub pretty_print {
Expand Down
4 changes: 2 additions & 2 deletions macros/PG.pl
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ sub _PG_init {
sub not_null { $PG->not_null(@_) }

sub pretty_print {
my ($input, $level, $print_level) = @_;
$PG->pretty_print($input, $level // $main::displayMode, $print_level // 5);
my ($input, $display_mode, $print_level) = @_;
$PG->pretty_print($input, $display_mode // $main::displayMode, $print_level // 5);
}

sub encode_pg_and_html { PGcore::encode_pg_and_html(@_) }
Expand Down

0 comments on commit b8df652

Please sign in to comment.