Skip to content

Commit

Permalink
Add some carriage returns to make the HTML a LITTLE more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed Aug 17, 2024
1 parent 4f5490c commit 94d63d5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions class.krumo.php
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ private static function _null($name)
</div></li>';

$html = sprintf($html, $name, static::get_separator());
$html .= "\n";

echo $html;
}
Expand Down Expand Up @@ -1247,7 +1248,7 @@ private static function _array($data, $name)
static::_vars($data);
}

print "</li>";
print "</li>\n";
}


Expand Down Expand Up @@ -1302,7 +1303,7 @@ private static function _object(&$data, $name)
unset($data->trace);
}

print "</li>";
print "</li>\n";
}


Expand All @@ -1321,6 +1322,7 @@ private static function _resource($data, $name)
</div></li>';

$html = sprintf($html, $name, static::get_separator(), get_resource_type($data));
$html .= "\n";

echo $html;
}
Expand All @@ -1346,6 +1348,7 @@ private static function _boolean($data, $name)
<a class="krumo-name">%s</a> <em class="krumo-type">Boolean</em>
%s<strong class="krumo-boolean">%s</strong>
</div></li>';
$html .= "\n";

$html = sprintf($html, $name, static::get_separator(), $value);

Expand All @@ -1366,7 +1369,7 @@ private static function _not_initialized($key, $type)
print "<a class=\"krumo-name\">$key</a> <em class=\"krumo-type\">$type</em> ";
print static::get_separator() . " <strong class=\"krumo-not-init\">[Not initialized]</strong>";

print "</div></li>";
print "</div></li>\n";
}


Expand All @@ -1388,7 +1391,7 @@ private static function _integer($data, $name)
print " ~ <strong class=\"krumo-datetime\">$ut</strong>";
}

print "</div></li>";
print "</div></li>\n";
}


Expand All @@ -1410,7 +1413,7 @@ private static function _float($data, $name)
print " ~ <strong class=\"krumo-datetime\">$ut</strong>";
}

print "</div></li>";
print "</div></li>\n";
}

public static function get_icon($name, $title)
Expand Down Expand Up @@ -1602,7 +1605,7 @@ private static function _string($data, $name)
print "</ul></div>";
}

print "</li>";
print "</li>\n";
}

public static function convert_whitespace($m) {
Expand Down

0 comments on commit 94d63d5

Please sign in to comment.