[Bps-public-commit] r14299 - Prophet/trunk/lib/Prophet/CLI/Command
jesse at bestpractical.com
jesse at bestpractical.com
Fri Jul 18 19:21:46 EDT 2008
Author: jesse
Date: Fri Jul 18 19:21:46 2008
New Revision: 14299
Modified:
Prophet/trunk/lib/Prophet/CLI/Command/Show.pm
Log:
* fix show to not swallow props on colorized ocntent
Modified: Prophet/trunk/lib/Prophet/CLI/Command/Show.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command/Show.pm (original)
+++ Prophet/trunk/lib/Prophet/CLI/Command/Show.pm Fri Jul 18 19:21:46 2008
@@ -69,12 +69,12 @@
next if !defined($value);
# color if we can (and should)
- my ($colorized_field, $colorized_value) = ($field, $value);
+ my ($colorized_field, $colorized_value);
if ($colorize) {
($colorized_field,$colorized_value) = $record->colorize($field => $value);
}
- push @fields, [$field, $colorized_field, $colorized_value];
+ push @fields, [$field, ($colorized_field|| $field), ($colorized_value ||$value)];
# don't check length($field) here, since coloring will increase the
# length but we only care about display length
More information about the Bps-public-commit
mailing list