From a2ebc570cf1c8016eef18eefd755cf3559672a55 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Sat, 27 Sep 2008 21:58:38 +0000 Subject: [PATCH] HBASE-906 [shell] Truncates output git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@699746 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + bin/Formatter.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 8d2813424a3..d7d95020da9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,6 +11,7 @@ Release 0.19.0 - Unreleased HBASE-892 Cell iteration is broken (Doğacan Güney via Jim Kellerman) HBASE-898 RowResult.containsKey(String) doesn't work (Doğacan Güney via Jim Kellerman) + HBASE-906 [shell] Truncates output IMPROVEMENTS HBASE-890 Alter table operation and also related changes in REST interface diff --git a/bin/Formatter.rb b/bin/Formatter.rb index 3af13d60a77..74436b8b3ba 100644 --- a/bin/Formatter.rb +++ b/bin/Formatter.rb @@ -84,11 +84,11 @@ module Formatter end def dump(str) - # Remove double-quotes added by 'dump'. if str.instance_of? Fixnum return end - return str.dump.slice(1, str.length) + # Remove double-quotes added by 'dump'. + return str.dump[1..-1] end def output(width, str)