TabularFormatter: also booleans will be aligned to the right v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 23 Dec 2013 18:27:57 +0100
branchv_0
changeset 432813d3409afd
parent 42 6fdaa4db3943
child 44 67581ec4396e
TabularFormatter: also booleans will be aligned to the right
java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java
     1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java	Mon Dec 23 16:29:51 2013 +0100
     1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java	Mon Dec 23 18:27:57 2013 +0100
     1.3 @@ -134,7 +134,7 @@
     1.4  	@Override
     1.5  	protected String toString(Object value) {
     1.6  		final int width = getColumnWidth(getCurrentColumnsCount());
     1.7 -		if (value instanceof Number) {
     1.8 +		if (value instanceof Number || value instanceof Boolean) {
     1.9  			return lpad(super.toString(value), width);
    1.10  		} else {
    1.11  			return rpad(super.toString(value), width);