Skip to content

Commit 38cd024

Browse files
committed
Use the pre-tag for better showing multidimensional arrays
1 parent 6577de8 commit 38cd024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646

4747
?>
48-
<tr <?php echo $alt ? 'class="alt"' : ''?>><td><div><?php echo format_html($key)?></div></td><td><div><?php echo nl2br(format_html(is_array($value) ? print_r($value, true) : $value))?></div></td></tr>
48+
<tr <?php echo $alt ? 'class="alt"' : ''?>><td><div><?php echo format_html($key)?></div></td><td><pre><?php echo format_html(is_array($value) ? print_r($value, true) : $value)?></pre></td></tr>
4949
<?php
5050

5151
$alt = !$alt;

0 commit comments

Comments
 (0)